コード例 #1
0
        /// <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);
        }
コード例 #2
0
        /// <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);
        }
コード例 #3
0
        public void ExportExcelFile(CommissionQueryFilter queryFilter, ColumnSet[] columns)
        {
            queryFilter.CompanyCode = CPApplication.Current.CompanyCode;
            string relativeUrl = "/POService/Commission/QueryVendorCommissions";

            restClient.ExportFile(relativeUrl, queryFilter, columns);
        }
コード例 #4
0
        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();
        }
コード例 #5
0
        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);
        }
コード例 #6
0
        private void btnSearch_Click(object sender, RoutedEventArgs e)
        {
            this.queryRequest = EntityConverter <VendorCommissionQueryVM, CommissionQueryFilter> .Convert(queryVM);

            QueryResultGrid.Bind();
        }
コード例 #7
0
 public decimal QueryVendorCommissionsTotalCount(CommissionQueryFilter queryFilter)
 {
     return(ObjectFactory <ICommissionQueryDA> .Instance.QueryCommissionTotalAmt(queryFilter));
 }