public void GetDrugDept(string frmName) { ServiceResponseData retdata = InvokeWcfService("DrugProject.Service", "MaterialInStoreController", "GetDrugDeptList"); DataTable dt = retdata.GetData <DataTable>(0); ifrmOutStore.BindDrugDept(dt); }
public void GetDrugDept(string frmName) { if (frmName == "FrmOutStoreDW") { Action <ClientRequestData> requestAction = ((ClientRequestData request) => { request.AddData(1); }); ServiceResponseData retdata = InvokeWcfService("DrugProject.Service", "InStoreController", "GetDrugDeptList", requestAction); DataTable dt = retdata.GetData <DataTable>(0); frmOutStoreDW.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); frmOutStoreDS.BindDrugDept(dt); } }