Exemplo n.º 1
0
 public void LoadBillHead(string frmName)
 {
     if (frmName == "FrmOutStoreDS")
     {
         var dic =
             frmOutStoreDS.GetQueryCondition(selectedDeptID);
         Action <ClientRequestData> requestAction = ((ClientRequestData request) =>
         {
             request.AddData(DGConstant.OP_DS_DEPTDRAW);
             request.AddData(dic);
         });
         ServiceResponseData retdata = InvokeWcfService("DrugProject.Service", "OutStoreController", "LoadBillHead", requestAction);
         DataTable           dtRtn   = retdata.GetData <DataTable>(0);
         frmOutStoreDS.BindHeadGrid(dtRtn);
     }
     else
     {
         var dic =
             frmOutStoreDW.GetQueryCondition(selectedDeptID);
         Action <ClientRequestData> requestAction = ((ClientRequestData request) =>
         {
             request.AddData(DGConstant.OP_DW_DEPTDRAW);
             request.AddData(dic);
         });
         ServiceResponseData retdata = InvokeWcfService("DrugProject.Service", "OutStoreController", "LoadBillHead", requestAction);
         DataTable           dtRtn   = retdata.GetData <DataTable>(0);
         frmOutStoreDW.BindHeadGrid(dtRtn);
     }
 }
Exemplo n.º 2
0
        public void LoadBillHead(string frmName)
        {
            var dic = ifrmOutStore.GetQueryCondition(selectedDeptID);
            Action <ClientRequestData> requestAction = ((ClientRequestData request) =>
            {
                request.AddData(MWConstant.OP_MW_DEPTDRAW);
                request.AddData(dic);
            });

            ServiceResponseData retdata = InvokeWcfService("DrugProject.Service", "MaterialOutStoreController", "LoadBillHead", requestAction);
            DataTable           dtRtn   = retdata.GetData <DataTable>(0);

            ifrmOutStore.BindHeadGrid(dtRtn);
        }