Пример #1
0
 public void LoadDrugStorage(string frmName)
 {
     if (frmName == "FrmLocation")
     {
         Action <ClientRequestData> requestAction = ((ClientRequestData request) =>
         {
             request.AddData(DGConstant.OP_DS_SYSTEM);
             request.AddData(frmLocation.GetQueryCondition());
         });
         ServiceResponseData retdata = InvokeWcfService("DrugProject.Service", "LocationController", "LoadDrugStorage", requestAction);
         DataTable           dtRtn   = retdata.GetData <DataTable>(0);
         frmLocation.BindStoreGrid(dtRtn);
     }
     else
     {
         Action <ClientRequestData> requestAction = ((ClientRequestData request) =>
         {
             request.AddData(DGConstant.OP_DW_SYSTEM);
             request.AddData(frmlocationyk.GetQueryCondition());
         });
         ServiceResponseData retdata = InvokeWcfService("DrugProject.Service", "LocationController", "LoadDrugStorage", requestAction);
         DataTable           dtRtn   = retdata.GetData <DataTable>(0);
         frmlocationyk.BindStoreGrid(dtRtn);
     }
 }
        public void LoadMaterialStorage(string frmName, string typeId)
        {
            Action <ClientRequestData> requestAction = ((ClientRequestData request) =>
            {
                request.AddData(frmLocation.GetQueryCondition());
                request.AddData(typeId);
            });

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

            frmLocation.BindStoreGrid(dtRtn);
        }