码迷,mamicode.com
首页 > Windows程序 > 详细

winform框架中dataquery的使用

时间:2017-10-20 18:28:11      阅读:181      评论:0      收藏:0      [点我收藏+]

标签: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<result.Items.length;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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!