Ejemplo n.º 1
0
 public void LoadDrugStorage(string frmName)
 {
     if (frmName == "FrmValidAlarmYF")
     {
         Action <ClientRequestData> requestAction = ((ClientRequestData request) =>
         {
             request.AddData(DGConstant.OP_DS_SYSTEM);
             request.AddData(frmValidAlarm.GetQueryCondition());
         });
         ServiceResponseData retdata = InvokeWcfService("DrugProject.Service", "ReportController", "LoadDrugStorage", requestAction);
         DataTable           dtRtn   = retdata.GetData <DataTable>(0);
         frmValidAlarm.BindStoreGrid(dtRtn);
     }
     else
     {
         Action <ClientRequestData> requestAction = ((ClientRequestData request) =>
         {
             request.AddData(DGConstant.OP_DW_SYSTEM);
             request.AddData(frmValidAlarmYK.GetQueryCondition());
         });
         ServiceResponseData retdata = InvokeWcfService("DrugProject.Service", "ReportController", "LoadDrugStorage", requestAction);
         DataTable           dtRtn   = retdata.GetData <DataTable>(0);
         frmValidAlarmYK.BindStoreGrid(dtRtn);
     }
 }
Ejemplo n.º 2
0
        public void LoadMaterialStorage(string frmName, string typeId)
        {
            Action <ClientRequestData> requestAction = ((ClientRequestData request) =>
            {
                request.AddData(frmValidAlarm.GetQueryCondition());
                request.AddData(typeId);
            });

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

            frmValidAlarm.BindStoreGrid(dtRtn);
        }