public void LoadBillHead(string frmName) { if (frmName == "FrmInStoreDS") { Action <ClientRequestData> requestAction = ((ClientRequestData request) => { request.AddData(DGConstant.OP_DS_INSTORE); request.AddData(frmInStoreDS.GetQueryCondition(selectedDeptID)); }); ServiceResponseData retdata = InvokeWcfService("DrugProject.Service", "InStoreController", "LoadBillHead", requestAction); DataTable dtRtn = retdata.GetData <DataTable>(0); frmInStoreDS.BindInHeadGrid(dtRtn); } else { Action <ClientRequestData> requestAction = ((ClientRequestData request) => { request.AddData(DGConstant.OP_DW_INSTORE); request.AddData(frmInStoreDW.GetQueryCondition(selectedDeptID)); }); ServiceResponseData retdata = InvokeWcfService("DrugProject.Service", "InStoreController", "LoadBillHead", requestAction); DataTable dtRtn = retdata.GetData <DataTable>(0); frmInStoreDW.BindInHeadGrid(dtRtn); } }
public void LoadBillHead(string frmName) { //如果是药房入库 Action <ClientRequestData> requestAction = ((ClientRequestData request) => { request.AddData(MWConstant.OP_MW_INSTORE); request.AddData(iFrmInstore.GetQueryCondition(selectedDeptID)); }); ServiceResponseData retdata = InvokeWcfService("DrugProject.Service", "MaterialInStoreController", "LoadBillHead", requestAction); DataTable dtRtn = retdata.GetData <DataTable>(0); iFrmInstore.BindInHeadGrid(dtRtn); }