首页 > Windows开发 > 详细

winform框架中dataquery的使用

时间:2017-10-20 17:30:39      阅读:296      评论:0      收藏:0      [点我收藏+]

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的使用

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!