winform框架中dataquery的使用

2021-05-04 15:30

阅读:688

标签:mobile   time   .sh   collect   address   type   ntb   query   ems   

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 if(result.Items[i].InvoiceFlag==1){
result.Items[i].InvoiceFlag = "开票";
}else{
result.Items[i].InvoiceFlag = "未开票";
}
}

winform框架中dataquery的使用

标签:mobile   time   .sh   collect   address   type   ntb   query   ems   

原文地址:http://www.cnblogs.com/boonook/p/7700343.html


评论


亲,登录后才可以留言!