示例#1
0
        public void GetDrugDept(string frmName)
        {
            ServiceResponseData retdata = InvokeWcfService("DrugProject.Service", "MaterialInStoreController", "GetDrugDeptList");
            DataTable           dt      = retdata.GetData <DataTable>(0);

            iFrmInstore.BindDrugDept(dt);
        }
示例#2
0
 public void GetDrugDept(string frmName)
 {
     if (frmName == "FrmInStoreDW")
     {
         Action <ClientRequestData> requestAction = ((ClientRequestData request) =>
         {
             request.AddData(1);
         });
         ServiceResponseData retdata = InvokeWcfService("DrugProject.Service", "InStoreController", "GetDrugDeptList", requestAction);
         DataTable           dt      = retdata.GetData <DataTable>(0);
         frmInStoreDW.BindDrugDept(dt);
     }
     else
     {
         Action <ClientRequestData> requestAction = ((ClientRequestData request) =>
         {
             request.AddData(0);
         });
         ServiceResponseData retdata = InvokeWcfService("DrugProject.Service", "InStoreController", "GetDrugDeptList", requestAction);
         DataTable           dt      = retdata.GetData <DataTable>(0);
         frmInStoreDS.BindDrugDept(dt);
     }
 }