/// <summary> /// 查询佣金列表 /// </summary> /// <param name="queryFilter"></param> /// <param name="callback"></param> public void QueryCommissions(CommissionQueryFilter queryFilter, EventHandler <RestClientEventArgs <dynamic> > callback) { queryFilter.CompanyCode = CPApplication.Current.CompanyCode; string relativeUrl = "/POService/Commission/QueryVendorCommissions"; restClient.QueryDynamicData(relativeUrl, queryFilter, callback); }
/// <summary> /// 查询佣金列表总金额 /// </summary> /// <param name="queryFilter"></param> /// <param name="callback"></param> public void QueryCommissionsTotalAmt(CommissionQueryFilter queryFilter, EventHandler <RestClientEventArgs <decimal> > callback) { queryFilter.CompanyCode = CPApplication.Current.CompanyCode; string relativeUrl = "/POService/Commission/QueryVendorCommissionsTotalCount"; restClient.Query <decimal>(relativeUrl, queryFilter, callback); }
public void ExportExcelFile(CommissionQueryFilter queryFilter, ColumnSet[] columns) { queryFilter.CompanyCode = CPApplication.Current.CompanyCode; string relativeUrl = "/POService/Commission/QueryVendorCommissions"; restClient.ExportFile(relativeUrl, queryFilter, columns); }
public override void OnPageLoad(object sender, EventArgs e) { base.OnPageLoad(sender, e); queryRequest = new CommissionQueryFilter(); serviceFacade = new VendorCommissionFacade(this); queryVM = new VendorCommissionQueryVM(); gridSource = new List <CommissionMasterVM>(); this.DataContext = queryVM; SetAccessControl(); }
public VendorCommissionRsp QueryCommissions(CommissionQueryFilter queryFilter) { int totalCount = 0; decimal totalAmt = 0; VendorCommissionRsp responseMsg = new VendorCommissionRsp() { Data = ObjectFactory <ICommissionQueryDA> .Instance.QueryCommission(queryFilter, out totalCount, out totalAmt) }; responseMsg.TotalCount = totalCount; responseMsg.TotalAmt = totalAmt; return(responseMsg); }
private void btnSearch_Click(object sender, RoutedEventArgs e) { this.queryRequest = EntityConverter <VendorCommissionQueryVM, CommissionQueryFilter> .Convert(queryVM); QueryResultGrid.Bind(); }
public decimal QueryVendorCommissionsTotalCount(CommissionQueryFilter queryFilter) { return(ObjectFactory <ICommissionQueryDA> .Instance.QueryCommissionTotalAmt(queryFilter)); }