zoukankan      html  css  js  c++  java
  • winform框架中dataquery的使用

    1.

    var nu_ll = '';
    var kong = '';
    var No_nu_null = '';
    if(scope.CI_s == null){
    nu_ll = scope.CI_s;
    }else if(scope.CI_s ==""){
    kong = scope.CI_s;
    }else{
    No_nu_null = scope.CI_s;
    }

    var fiter = "ContractID=='"+No_nu_null+"'|| ContractID=='"+kong +"'|| ContractID=='"+nu_ll +"'||'"+nu_ll +"'==''";

    var query = {
    TabularType:"ApplicationData.T_ContractInfo",
    //Properties:["CustomerLinkerInfo.OfficeTel","CustomerLinkerInfo.Mobile1"]
    Filter:fiter,
    Properties:["ContractType","ContractID","ImplementState","SignedDate","RequireImplementTime","ImplementRemark","RegisteDate",
    "ServiceEndDate","InvoiceFlag","ContractBalance","InstalDate","ContractMemory","OtherMemory","CustomerLinkerID",
    "T_CustomerLinkerInfo.LinkerName","T_CustomerLinkerInfo.AliasName","T_CustomerLinkerInfo.Position",
    "T_CustomerLinkerInfo.OfficeTel","T_CustomerLinkerInfo.HomeTel","T_CustomerLinkerInfo.Mobile1",
    "T_CustomerLinkerInfo.Mobile2","T_CustomerLinkerInfo.Email",
    "CustomerInfo.AccountNo","CustomerInfo.CHName","CustomerInfo.CustomerID","CustomerInfo.SelfDefineCode",
    "CustomerInfo.ENName","CustomerInfo.CHShortName","CustomerInfo.ENShortName","CustomerInfo.SpellShortCode",
    "CustomerInfo.CustomerType","CustomerInfo.ParentGroup","CustomerInfo.SaleBrand","CustomerInfo.SA",
    "CustomerInfo.Provinces","CustomerInfo.City","CustomerInfo.Area","CustomerInfo.Address","CustomerInfo.ZipCost",
    "CustomerInfo.Tel",'CustomerInfo.Mobile',"CustomerInfo.Fax","CustomerInfo.Web","CustomerInfo.Email","CustomerInfo.Property",
    "CustomerInfo.AccountBank","CustomerInfo.TaxNo","CustomerInfo.Onwer","CustomerInfo.Summary","CollectionDetail.ShouldMoney","CollectionDetail.ActualMoney"]//,"CollectionDetail.NoGetMoney"
    //Properties:["CollectionDetail.ContractID","CollectionDetail.NoGetMoney"]
    };



    DataService.dataQuery(query,function(err,result){
    scope.re =result.Items.length;
    if(scope.re>0){
    scope.a = result.Items[0].InvoiceFlag;

    //是否开票
    for(var i=0;i<result.Items.length;i++){
    if(result.Items[i].InvoiceFlag==1){
    result.Items[i].InvoiceFlag = "开票";
    }else{
    result.Items[i].InvoiceFlag = "未开票";
    }
    }

  • 相关阅读:
    STL笔记之【map之总概】
    STL笔记之set
    Effective C++笔记之Item49【了解new-handler的行为】
    明成软件条形码打印设置
    将Excel数据导入到SqlServer及导入时数据类型转换失败解决方案
    远程桌面无法复制粘贴传输文件解决办法
    DELPHI如何读取cxcheckcombobox中的值
    Delphi 插入Excel图片和值
    SQL 查询语句先执行 SELECT?
    Linux之xargs命令传递参数的一个过滤器
  • 原文地址:https://www.cnblogs.com/boonook/p/7700343.html
Copyright © 2011-2022 走看看