public int ShowOMRTplDialog(OPD_OMRTmpDetail detailModel) { isSucess = 2; currentTmpDetail = detailModel; FrmOMRTemplate frm = (iFrmOMRTemplate as FrmOMRTemplate); frm.ShowDialog(); return(isSucess); }
public void AsSaveTmp(OPD_OMRTmpHead tempHead) { tempHead.CreateEmpID = LoginUserInfo.EmpId; tempHead.CreateDeptID = LoginUserInfo.DeptId; Action <ClientRequestData> requestAction = ((ClientRequestData request) => { request.AddData(tempHead); request.AddData(currentTmpDetail); }); ServiceResponseData retdata = InvokeWcfService("OPProject.Service", "OMRController", "AsSaveTmp", requestAction); bool bRtn = retdata.GetData <bool>(0); FrmOMRTemplate frm = (iFrmOMRTemplate as FrmOMRTemplate); frm.Close(); if (bRtn == true) { isSucess = 1; } else { isSucess = 0; } }