示例#1
0
        private void FillFUNConstStore(string FUNConstID)
        {
            //GenericParametersRequest request = new GenericParametersRequest();
            //request.paramString = "1|" + CustID;
            //request.Filter = "";
            //ListResponse<Address> Measurements = _saleService.ChildGetAll<Address>(request);
            //if (!Measurements.Success)
            //{
            //    Common.errorMessage(Measurements);
            //    return;
            //}
            //this.ClientAddressStore.DataSource = Measurements.Items;

            //this.AddressGridPanel.DataBind();

            PayrollFunConstCodeRequest request = new PayrollFunConstCodeRequest();

            request.FunctionId = FUNConstID;
            request.Filter     = "";
            ListResponse <PayrollFunConst> resp = _payrollService.ChildGetAll <PayrollFunConst>(request);

            if (!resp.Success)
            {
                Common.errorMessage(resp);
            }
            this.FunctionConstStore.DataSource = resp.Items;

            this.FunConstGridPanel.DataBind();
        }
示例#2
0
        protected void FUNConstStore_ReadData(object sender, StoreReadDataEventArgs e)
        {
            string filter     = string.Empty;
            int    totalCount = 1;

            if (string.IsNullOrEmpty(CurrentFunctionId.Text))
            {
                return;
            }

            PayrollFunConstCodeRequest request = new PayrollFunConstCodeRequest();

            request.FunctionId = CurrentFunctionId.Text;
            request.Filter     = "";
            ListResponse <PayrollFunConst> resp = _payrollService.ChildGetAll <PayrollFunConst>(request);

            if (!resp.Success)
            {
                Common.errorMessage(resp);
            }
            this.FunctionConstStore.DataSource = resp.Items;

            this.FunConstGridPanel.DataBind();
        }