protected void css_btnSave_Click(object sender, EventArgs e) { string id = string.Format("Id: {0} Uri: {1}", Guid.NewGuid(), HttpContext.Current.Request.Url); using (Utils utility = new Utils()) { utility.MethodStart(id, System.Reflection.MethodBase.GetCurrentMethod()); } try { SaveOperation _objsave = new SaveOperation(); _objsave.WebPage = this.Page; _objsave.Xml_File = "Patient_Intake1.xml"; _objsave.SaveMethod(); // LoadData(); } catch (Exception ex) { Elmah.ErrorSignal.FromCurrentContext().Raise(ex); using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } string str2 = "Error Request=" + id + ".Please share with Technical support."; base.Response.Redirect("Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2); } Response.Redirect("Bill_Sys_CO_Patient_Intake2.aspx"); //Method End using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } }
protected void btnSave_Click(object sender, EventArgs e) { string id = string.Format("Id: {0} Uri: {1}", Guid.NewGuid(), HttpContext.Current.Request.Url); using (Utils utility = new Utils()) { utility.MethodStart(id, System.Reflection.MethodBase.GetCurrentMethod()); } _saveOperation = new SaveOperation(); try { _saveOperation.WebPage = this.Page; _saveOperation.Xml_File = "ICCode.xml"; _saveOperation.SaveMethod(); BindGrid(); lblMsg.Visible = true; lblMsg.Text = " IC Code Saved successfully ! "; } catch (Exception ex) { Elmah.ErrorSignal.FromCurrentContext().Raise(ex); using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } string str2 = "Error Request=" + id + ".Please share with Technical support."; base.Response.Redirect("Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2); } //Method End using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } }
protected void btnWriteoff_Click(object sender, EventArgs e) { string id = string.Format("Id: {0} Uri: {1}", Guid.NewGuid(), HttpContext.Current.Request.Url); using (Utils utility = new Utils()) { utility.MethodStart(id, System.Reflection.MethodBase.GetCurrentMethod()); } try { txtPaymentType.Text = "2"; _saveOperation = new SaveOperation(); _saveOperation.WebPage = this.Page; _saveOperation.Xml_File = "PaymentTransaction.xml"; _saveOperation.SaveMethod(); Response.Redirect("Bill_Sys_WriteOffDesk.aspx", false); } catch (Exception ex) { Elmah.ErrorSignal.FromCurrentContext().Raise(ex); using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } string str2 = "Error Request=" + id + ".Please share with Technical support."; base.Response.Redirect("Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2); } //Method End using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } }
private void SaveEvent() { string id = string.Format("Id: {0} Uri: {1}", Guid.NewGuid(), HttpContext.Current.Request.Url); using (Utils utility = new Utils()) { utility.MethodStart(id, System.Reflection.MethodBase.GetCurrentMethod()); } _saveOperation = new SaveOperation(); try { _saveOperation.WebPage = this.Page; _saveOperation.Xml_File = "CalendarEvent.xml"; _saveOperation.SaveMethod(); } catch (Exception ex) { Elmah.ErrorSignal.FromCurrentContext().Raise(ex); using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } string str2 = "Error Request=" + id + ".Please share with Technical support."; base.Response.Redirect("Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2); } //Method End using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } }
private void saveToolStripButton_Click(object sender, EventArgs e) { foreach (DataDictionary.Dictionary dictionary in EFSSystem.Dictionaries) { SaveOperation saveOperation = new SaveOperation(this, dictionary); ProgressDialog dialog = new ProgressDialog("Saving file " + dictionary.Name, saveOperation); dialog.ShowDialog(); } }
//public string FillPDFValue(string EventID, string sz_CompanyID, string sz_CompanyName) //{ // string sz_CaseID = "1"; // PDFValueReplacement.PDFValueReplacement objValueReplacement = new PDFValueReplacement.PDFValueReplacement(); // string strGenFileName = ""; // try // { // Bill_Sys_NF3_Template objNF3Template = new Bill_Sys_NF3_Template(); // string xmlpath = ConfigurationManager.AppSettings["HIPPA_XML_Path"].ToString(); // string pdfpath = ConfigurationManager.AppSettings["HIPPA_PDF_Path"].ToString(); // String szDefaultPath = "PROCOMSYS" + "/" + sz_CaseID + "/Packet Document/"; // String szDestinationDir = "PROCOMSYS" + "/" + sz_CaseID + "/No Fault File/Medicals/CH/"; // strGenFileName = objValueReplacement.ReplacePDFvalues(xmlpath, pdfpath, EventID, "PROCOMSYS", sz_CaseID); // if (File.Exists(objNF3Template.getPhysicalPath() + szDefaultPath + strGenFileName)) // { // if (!Directory.Exists(objNF3Template.getPhysicalPath() + szDestinationDir)) // { // Directory.CreateDirectory(objNF3Template.getPhysicalPath() + szDestinationDir); // } // File.Copy(objNF3Template.getPhysicalPath() + szDefaultPath + strGenFileName, objNF3Template.getPhysicalPath() + szDestinationDir + strGenFileName); // } // //Bill_Sys_CheckoutBO objCheckoutBO = new Bill_Sys_CheckoutBO(); // //ArrayList objAL = new ArrayList(); // //objAL.Add(sz_CaseID); // //objAL.Add(strGenFileName); // //objAL.Add(szDestinationDir); // //objAL.Add(((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_NAME); // //objAL.Add(sz_CompanyID); // //objAL.Add(EventID); // //objCheckoutBO.save_CHIRO_DocMang(objAL); // // Open file // // String szOpenFilePath = ""; // // szOpenFilePath = ConfigurationSettings.AppSettings["DocumentManagerURL"].ToString() + szDestinationDir + strGenFileName; // // Response.Redirect(szOpenFilePath, false); // //Page.ClientScript.RegisterClientScriptBlock(typeof(GridView), "Msg", "window.open('" + szOpenFilePath + "'); ", true); // } // catch (Exception ex) // { // Elmah.ErrorSignal.FromCurrentContext().Raise(ex); // } // return strGenFileName; //} protected void btnSavePrint_Click(object sender, EventArgs e) { string id = string.Format("Id: {0} Uri: {1}", Guid.NewGuid(), HttpContext.Current.Request.Url); using (Utils utility = new Utils()) { utility.MethodStart(id, System.Reflection.MethodBase.GetCurrentMethod()); } Bill_Sys_CheckoutBO _objcheckOut = new Bill_Sys_CheckoutBO(); objNF3Template = new Bill_Sys_NF3_Template(); string sz_CompanyID = ((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_COMAPNY_ID; string sz_EventID = ((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_CASE_ID; try { SaveOperation _objsave = new SaveOperation(); _objsave.WebPage = this.Page; _objsave.Xml_File = "HIPPA.xml"; _objsave.SaveMethod(); //#region" "Barcode functionality //DataSet dset = new DataSet(); //dset = _objcheckOut.GetNodeID(sz_CompanyID, sz_EventID); //string sz_NodeId = dset.Tables[0].Rows[0][1].ToString(); //string sz_CaseId = dset.Tables[0].Rows[0][0].ToString(); //string barcodeValue = sz_CompanyID + "@" + sz_CaseId + "@" + sz_NodeId; //String sz_BarcodeImagePath = (objNF3Template.getPhysicalPath()) + ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME + "/" + ((Bill_Sys_CaseObject)Session["CASE_OBJECT"]).SZ_CASE_ID + "/Signs/"; //if (!Directory.Exists(sz_BarcodeImagePath)) //{ // Directory.CreateDirectory(sz_BarcodeImagePath); //} //SpecialityPDFBO pdfbo = new SpecialityPDFBO(); //CaseBarcodePath = pdfbo.GetBarCodePath(sz_CompanyID, sz_CaseId, sz_NodeId, sz_BarcodeImagePath); //#endregion //_objcheckOut.LienPatientPath(sz_EventID, "", CaseBarcodePath, "", ""); //_objcheckOut.MRI_Questionary_SaveSignPath(sz_EventID, CaseBarcodePath, ""); PrintAOBFillPDFValue(sz_EventID, sz_CompanyID, ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME); } catch (Exception ex) { Response.Write("Exp Msg= " + ex); Elmah.ErrorSignal.FromCurrentContext().Raise(ex); using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } string str2 = "Error Request=" + id + ".Please share with Technical support."; base.Response.Redirect("Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2); } //Method End using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } }
protected void css_btnSave_Click(object sender, EventArgs e) { string id = string.Format("Id: {0} Uri: {1}", Guid.NewGuid(), HttpContext.Current.Request.Url); using (Utils utility = new Utils()) { utility.MethodStart(id, System.Reflection.MethodBase.GetCurrentMethod()); } try { SaveOperation _objsave = new SaveOperation(); _objsave.WebPage = this.Page; _objsave.Xml_File = "HIPPA.xml"; _objsave.SaveMethod(); LoadData(); ArrayList objal = new ArrayList(); SpecialityPDFFill spf = new SpecialityPDFFill(); spf.sz_EventID = Session["HIPPA_CaseID"].ToString(); spf.sz_CompanyID = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID; spf.sz_CompanyName = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME; spf.SZ_SPECIALITY_NAME = "HIPAA Forms"; spf.SZ_SPECIALITY_CODE = "INHIP"; spf.sz_XMLPath = "HIPPA_XML_Path"; spf.sz_PDFPath = "HIPPA_PDF_Path"; spf.sz_Session_Id = Session["HIPPA_CaseID"].ToString(); spf.SZ_USER_NAME = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_NAME; objal = spf.FillPDFValue(spf); Page.ClientScript.RegisterClientScriptBlock(typeof(GridView), "Msg", "window.open('" + objal[1] + "'); ", true); spf.sz_Session_Id = Session["HIPPA_CaseID"].ToString(); spf.sz_CompanyID = ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID; spf.sz_EventID = ""; spf.SZ_PT_FILE_NAME = objal[0].ToString(); spf.SZ_PT_FILE_PATH = objal[2].ToString(); spf.SZ_SPECIALITY_CODE = "INHIP"; spf.SZ_SPECIALITY_NAME = "HIPAA Forms"; spf.SZ_USER_NAME = ((Bill_Sys_UserObject)Session["USER_OBJECT"]).SZ_USER_NAME; spf.savePDFForminDocMang(spf); } catch (Exception ex) { Elmah.ErrorSignal.FromCurrentContext().Raise(ex); using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } string str2 = "Error Request=" + id + ".Please share with Technical support."; base.Response.Redirect("Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2); } //Method End using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } }
/// <summary> /// Initializes a new <see cref="ConfigurationSourceModel"/>. /// </summary> /// <param name="lookup">The <see cref="ElementLookup"/> service used for locating elements.</param> /// <param name="viewModelDependency">The <see cref="ConfigurationSourceDependency"/> for notifying others of changes in this configuration source.</param> /// <param name="builder">The container for building new objects.</param> /// <param name="uiService">The user-interface service for presenting dialogs and windows to the user.</param> /// <param name="saveOperation">Save operation integration with a host environment.</param> public ConfigurationSourceModel(ElementLookup lookup, ConfigurationSourceDependency viewModelDependency, IUnityContainer builder, IUIServiceWpf uiService, SaveOperation saveOperation) { this.uiService = uiService; this.builder = builder; this.viewModelDependency = viewModelDependency; this.lookup = lookup; this.saveOperation = saveOperation; sections = new ObservableCollection<SectionViewModel>(); readOnlySectionView = new ReadOnlyObservableCollection<SectionViewModel>(sections); }
/// <summary> /// Initializes a new <see cref="ConfigurationSourceModel"/>. /// </summary> /// <param name="lookup">The <see cref="ElementLookup"/> service used for locating elements.</param> /// <param name="viewModelDependency">The <see cref="ConfigurationSourceDependency"/> for notifying others of changes in this configuration source.</param> /// <param name="builder">The container for building new objects.</param> /// <param name="uiService">The user-interface service for presenting dialogs and windows to the user.</param> /// <param name="saveOperation">Save operation integration with a host environment.</param> public ConfigurationSourceModel(ElementLookup lookup, ConfigurationSourceDependency viewModelDependency, IUnityContainer builder, IUIServiceWpf uiService, SaveOperation saveOperation) { this.uiService = uiService; this.builder = builder; this.viewModelDependency = viewModelDependency; this.lookup = lookup; this.saveOperation = saveOperation; sections = new ObservableCollection <SectionViewModel>(); readOnlySectionView = new ReadOnlyObservableCollection <SectionViewModel>(sections); }
private void SavePlanOfCare() {//Logging Start string id = string.Format("Id: {0} Uri: {1}", Guid.NewGuid(), HttpContext.Current.Request.Url); using (Utils utility = new Utils()) { utility.MethodStart(id, System.Reflection.MethodBase.GetCurrentMethod()); } _saveOperation = new SaveOperation(); _editOperation = new EditOperation(); try { if (txtPlanofCareID.Text != "") { _editOperation.Primary_Value = txtPlanofCareID.Text; _editOperation.WebPage = this.Page; _editOperation.Xml_File = "PlanOfCare.xml"; _editOperation.UpdateMethod(); } else { if (rdlstMedicationRestrictions.SelectedValue == "0") { txtMedicationRestrictions.Text = ""; } if (rdlstTreatmentGuidelines.SelectedValue == "1") { txtTreatmentGuidelines.Text = txtVarianceGuideline.Text; } _saveOperation.WebPage = this.Page; _saveOperation.Xml_File = "PlanOfCare.xml"; _saveOperation.SaveMethod(); _workerstemplate = new workers_templateC4_2(); txtPlanofCareID.Text = _workerstemplate.GetPlanOfCareLatestID(txtPatientID.Text); } } catch (Exception ex) { Elmah.ErrorSignal.FromCurrentContext().Raise(ex); using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } string str2 = "Error Request=" + id + ".Please share with Technical support."; base.Response.Redirect("../Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2); } //Method End using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } }
protected void BtnSave_Click(object sender, EventArgs e) { string id = string.Format("Id: {0} Uri: {1}", Guid.NewGuid(), HttpContext.Current.Request.Url); using (Utils utility = new Utils()) { utility.MethodStart(id, System.Reflection.MethodBase.GetCurrentMethod()); } try { TXT_839_08_UPPER_MULTIPLE_SUBLUXATION.Text = RDO_839_08_UPPER_MULTIPLE_SUBLUXATION.SelectedIndex.ToString(); TXT_723_1_UPPER_CERVICALGIA.Text = RDO_723_1_UPPER_CERVICALGIA.SelectedIndex.ToString(); TXT_723_2_UPPER_CERVICOCRANIAL_SYNDROME.Text = RDO_723_2_UPPER_CERVICOCRANIAL_SYNDROME.SelectedIndex.ToString(); TXT_723_3_UPPER_CERVICOBRACHIAL_SYNDROME.Text = RDO_723_3_UPPER_CERVICOBRACHIAL_SYNDROME.SelectedIndex.ToString(); TXT_723_4_UPPER_CERVICAL_REDICULITIS.Text = RDO_723_4_UPPER_CERVICAL_REDICULITIS.SelectedIndex.ToString(); TXT_729_1_UPPER_MYALGIA_MYOSITIS.Text = RDO_729_1_UPPER_MYALGIA_MYOSITIS.SelectedIndex.ToString(); TXT_728_85_UPPER_MUSCLE_SPASM.Text = RDO_728_85_UPPER_MUSCLE_SPASM.SelectedIndex.ToString(); TXT_782_0_UPPER_NUMBNESS_TINGLING.Text = RDO_782_0_UPPER_NUMBNESS_TINGLING.SelectedIndex.ToString(); TXT_839_2_LOWER_LUMBER_SUBLAXATION.Text = RDO_839_2_LOWER_LUMBER_SUBLAXATION.SelectedIndex.ToString(); TXT_839_42_LOWER_SACROILLIAC_SUBLUXATIONS.Text = RDO_839_42_LOWER_SACROILLIAC_SUBLUXATIONS.SelectedIndex.ToString(); TXT_724_2_LOWER_LUMBOSACRAL_RADICULITIS.Text = RDO_724_2_LOWER_LUMBOSACRAL_RADICULITIS.SelectedIndex.ToString(); TXT_724_8_LOWER_LUMBAGO.Text = RDO_724_8_LOWER_LUMBAGO.SelectedIndex.ToString(); TXT_723_4_LOWER_LUMBAR_FACET_SYNDROME.Text = RDO_723_4_LOWER_LUMBAR_FACET_SYNDROME.SelectedIndex.ToString(); TXT_728_85_LOWER_MUSCLE_SPASM.Text = RDO_728_85_LOWER_MUSCLE_SPASM.SelectedIndex.ToString(); TXT_782_0_LOWER_NUMBNESS_TINGLING.Text = RDO_782_0_LOWER_NUMBNESS_TINGLING.SelectedIndex.ToString(); TXT_729_1_LOWER_MYALGIA_MYOSITIS.Text = RDO_729_1_LOWER_MYALGIA_MYOSITIS.SelectedIndex.ToString(); if (Page.IsValid) { SaveOperation _objsave = new SaveOperation(); _objsave.WebPage = this.Page; _objsave.Xml_File = "ECG_Form_First_Page.xml"; _objsave.SaveMethod(); } } catch (Exception ex) { Elmah.ErrorSignal.FromCurrentContext().Raise(ex); using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } string str2 = "Error Request=" + id + ".Please share with Technical support."; base.Response.Redirect("Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2); } Response.Redirect("Bill_Sys_ECG_Form2.aspx"); //Method End using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } }
public void HappyPath_WithDate() { var expectedValue = 123.456; var expectedDate = new DateTime(2017, 12, 5, 1, 3, 4); var toTest = new SaveOperation(expectedValue, expectedDate); Assert.AreEqual(OperationType.SAVE, toTest.Operation); Assert.AreEqual(expectedValue, toTest.Amount); Assert.AreEqual(expectedDate.Ticks, toTest.Date.Ticks); }
public IEnumerator SaveToFile(string filepath) { SaveOperation saveOp; JObject saveData = GameController.Instance.Save(); saveOp = new SaveOperation(filepath, saveData); saveDisplay.BeginSave(); yield return(new WaitUntil(() => saveOp.IsDone)); saveDisplay.FinishSave(); }
protected void btnSave_Click(object sender, EventArgs e) { string id = string.Format("Id: {0} Uri: {1}", Guid.NewGuid(), HttpContext.Current.Request.Url); using (Utils utility = new Utils()) { utility.MethodStart(id, System.Reflection.MethodBase.GetCurrentMethod()); } _saveOperation = new SaveOperation(); try { foreach (ListItem lstItem in lstProcCode.Items) { if (lstItem.Selected == true) { txtProcCode.Text = lstItem.Value; _saveOperation.WebPage = this.Page; _saveOperation.Xml_File = "AssignProcedureCodeXML.xml"; _saveOperation.SaveMethod(); } } ArrayList objsave = new ArrayList(); for (int j = 0; j < chklist.Items.Count; j++) { if (chklist.Items[j].Selected == true) { objsave.Add(chklist.Items[j].Value); } } // // SaveCheckbox(objsave); BindGrid(); ClearControl(); usrMessage.PutMessage("Record added sucessfully"); usrMessage.SetMessageType(UserControl_ErrorMessageControl.DisplayType.Type_UserMessage); usrMessage.Show(); } catch (Exception ex) { Elmah.ErrorSignal.FromCurrentContext().Raise(ex); using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } string str2 = "Error Request=" + id + ".Please share with Technical support."; base.Response.Redirect("Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2); } //Method End using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } }
protected void btnSave_Click(object sender, EventArgs e) { string id = string.Format("Id: {0} Uri: {1}", Guid.NewGuid(), HttpContext.Current.Request.Url); using (Utils utility = new Utils()) { utility.MethodStart(id, System.Reflection.MethodBase.GetCurrentMethod()); } if (rdoVisitType.SelectedValue.ToString() != "") { txtVisitType.Text = rdoVisitType.SelectedValue.ToString(); } else { txtVisitType.Text = "0"; } _saveOperation = new SaveOperation(); try { _saveOperation.WebPage = this.Page; _saveOperation.Xml_File = "procedurecode.xml"; _saveOperation.SaveMethod(); _visitBO = new Bill_Sys_Visit_BO(); _objAL = new ArrayList(); _objAL.Add(txtProcedureCode.Text); _objAL.Add(txtProcedureDesc.Text); // _objAL.Add(txtProcedureAmount.Text); _objAL.Add(ddlType.SelectedItem.ToString()); _objAL.Add(txtCompanyID.Text); _objAL.Add(extddlProCodeGroup.Text); _visitBO.saveVisit(_objAL); SaveAmount(); BindGrid(); lblMsg.Visible = true; lblMsg.Text = " Procedure Code Saved successfully ! "; } catch (Exception ex) { Elmah.ErrorSignal.FromCurrentContext().Raise(ex); using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } string str2 = "Error Request=" + id + ".Please share with Technical support."; base.Response.Redirect("Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2); } //Method End using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } }
protected void btnSave_Click(object sender, EventArgs e) { string id = string.Format("Id: {0} Uri: {1}", Guid.NewGuid(), HttpContext.Current.Request.Url); using (Utils utility = new Utils()) { utility.MethodStart(id, System.Reflection.MethodBase.GetCurrentMethod()); } TXT_INFORMATION_MODE1.Text = RDO_INFORMATION_MODE.SelectedValue.ToString(); TXT_LEFT_RIGHT_PASSENGER.Text = RDO_LEFT_RIGHT_PASSENGER.SelectedValue.ToString(); TXT_SEAT_BELT_WEARING.Text = RDO_SEAT_BELT_WEARING.SelectedValue.ToString(); TXT_AIR_BAG_DEPLOYMENT.Text = RDO_AIR_BAG_DEPLOYMENT.SelectedValue.ToString(); TXT_FRONT_REAR_IMPACT.Text = RDO_FRONT_REAR_IMPACT.SelectedValue.ToString(); TXT_LEFT_RIGHT_SIDE_IMPACT.Text = RDO_LEFT_RIGHT_SIDE_IMPACT.SelectedValue.ToString(); TXT_R_L_KNEE_PAIN.Text = RDO_R_L_KNEE_PAIN.SelectedValue.ToString(); TXT_R_L_SHOULDER_PAIN.Text = RDO_R_L_SHOULDER_PAIN.SelectedValue.ToString(); TXT_R_L_HIP_PAIN.Text = RDO_R_L_HIP_PAIN.SelectedValue.ToString(); TXT_R_L_ARM_LEG.Text = RDO_R_L_ARM_LEG.SelectedValue.ToString(); TXT_R_L_HAND_FOOT.Text = RDO_R_L_HAND_FOOT.SelectedValue.ToString(); TXT_R_L_DIGITS.Text = RDO_R_L_DIGITS.SelectedValue.ToString(); TXT_R_L_ACCURATE_DIGITS_PAIN.Text = RDO_R_L_ACCURATE_DIGITS_PAIN.SelectedValue.ToString(); TXT_R_L_TOES.Text = RDO_R_L_TOES.SelectedValue.ToString(); TXT_R_L_ACCURATE_TOES_PAIN.Text = RDO_R_L_ACCURATE_TOES_PAIN.SelectedValue.ToString(); TXT_AMBULANCE_CALLED.Text = RDO_AMBULANCE_CALLED.SelectedValue.ToString(); TXT_MULTIPLE_X_RAY_TAKEN.Text = RDO_MULTIPLE_X_RAY_TAKEN.SelectedValue.ToString(); TXT_POSITIVE_NEGATIVE_FRACTURE.Text = RDO_POSITIVE_NEGATIVE_FRACTURE.SelectedValue.ToString(); _saveOperation = new SaveOperation(); try { _saveOperation.WebPage = this.Page; // Pass Current web form to SaveOperation. _saveOperation.Xml_File = "Bill_Sys_CO_Chiro.xml"; // Pass xml file to SaveOperation _saveOperation.SaveMethod(); // Call save method of SaveOperation. Will save all information from web form. } catch (Exception ex) { Elmah.ErrorSignal.FromCurrentContext().Raise(ex); using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } string str2 = "Error Request=" + id + ".Please share with Technical support."; base.Response.Redirect("Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2); } Response.Redirect("Bill_Sys_CO_Chiro_Past_Medical_History.aspx"); //Method End using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } }
public void HappyPath_NoDate() { var expectedValue = 123.456; var dateTime1 = DateTime.Now; var toTest = new SaveOperation(expectedValue); var dateTime2 = DateTime.Now; Assert.AreEqual(OperationType.SAVE, toTest.Operation); Assert.AreEqual(expectedValue, toTest.Amount); Assert.IsTrue(dateTime1.Ticks <= toTest.Date.Ticks); Assert.IsTrue(toTest.Date.Ticks <= dateTime2.Ticks); }
protected void css_btnSave_Click(object sender, EventArgs e) { string id = string.Format("Id: {0} Uri: {1}", Guid.NewGuid(), HttpContext.Current.Request.Url); using (Utils utility = new Utils()) { utility.MethodStart(id, System.Reflection.MethodBase.GetCurrentMethod()); } try { CheckRadioList(); _saveOperation = new SaveOperation(); _saveOperation.WebPage = this.Page; _saveOperation.Xml_File = "MST_CHIRO_CA.xml"; _saveOperation.SaveMethod(); } catch (Exception ex) { Elmah.ErrorSignal.FromCurrentContext().Raise(ex); using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } string str2 = "Error Request=" + id + ".Please share with Technical support."; base.Response.Redirect("Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2); } Bill_Sys_CheckoutBO objChairo = new Bill_Sys_CheckoutBO(); if (objChairo.CheckImagePath(Convert.ToInt16(txtEventID.Text), "SP_UPDATE_MST_CHIRO_CA")) { String ch_EventID = txtEventID.Text; FillPDFValue(ch_EventID, ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME); } else { #region "prashant for signpad // Page.ClientScript.RegisterClientScriptBlock(typeof(GridView), "Msg", "window.open('Bill_Sys_Co_DoctorSign_ChiroCaDatail.aspx','Sign','toolbar=no,directories=no,menubar=no,scrollbars=no,status=no,resizable=no,width=700,height=575'); ", true); //Page.ClientScript.RegisterClientScriptBlock(typeof(GridView), "Msg", "window.open('Bill_Sys_Co_PatientSign_ChiroCaDatail.aspx','Sign','toolbar=no,directories=no,menubar=no,scrollbars=no,status=no,resizable=no,width=700,height=575'); ", true); // Page.ClientScript.RegisterClientScriptBlock(typeof(GridView), "Msg", "window.open('Bill_Sys_CO_Chiro_Ca_Signature.aspx','Sign','toolbar=no,directories=no,menubar=no,scrollbars=no,status=no,resizable=no,width=700,height=575'); ", true); #endregion Page.ClientScript.RegisterClientScriptBlock(typeof(GridView), "Msg", "window.open('Bill_Sys_CO_Chiro_Ca_Signature.aspx','Sign','toolbar=no,directories=no,menubar=no,scrollbars=no,status=no,resizable=no,width=700,height=575'); ", true); } //Method End using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } }
protected void btnSave_Click(object sender, EventArgs e) { string id = string.Format("Id: {0} Uri: {1}", Guid.NewGuid(), HttpContext.Current.Request.Url); using (Utils utility = new Utils()) { utility.MethodStart(id, System.Reflection.MethodBase.GetCurrentMethod()); } _saveOperation = new SaveOperation(); try { //_editOperation = new EditOperation(); //_editOperation.WebPage = this.Page; // Pass Current web form to SaveOperation. //_editOperation.Xml_File = "IM_NeuroLogicalExamination.xml"; // Pass xml file to SaveOperation //_editOperation.Primary_Value = "11";// Pass ID to edit operation. //_editOperation.UpdateMethod(); // call Update if (rdlRhomberg_test.SelectedValue.ToString().Equals("")) { txtrdlRhomberg_test.Text = "-1"; } else { txtrdlRhomberg_test.Text = rdlRhomberg_test.SelectedValue; } _saveOperation.WebPage = this.Page; _saveOperation.Xml_File = "IM_NeuroLogicalExamination.xml"; _saveOperation.SaveMethod(); Response.Redirect("Bill_Sys_IM_DiagnosticImpresstion.aspx", false); } catch (Exception ex) { Elmah.ErrorSignal.FromCurrentContext().Raise(ex); using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } string str2 = "Error Request=" + id + ".Please share with Technical support."; base.Response.Redirect("Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2); } //Method End using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } }
private void SaveData() { string id = string.Format("Id: {0} Uri: {1}", Guid.NewGuid(), HttpContext.Current.Request.Url); using (Utils utility = new Utils()) { utility.MethodStart(id, System.Reflection.MethodBase.GetCurrentMethod()); } _saveOperation = new SaveOperation(); _editOperation = new EditOperation(); _workersTemplate = new Workers_TemplateC4_3(); try { if (txtPermanentImpairmentID.Text != "") { _editOperation.Primary_Value = txtPermanentImpairmentID.Text; _editOperation.Xml_File = "PermanentImpairment.xml"; _editOperation.WebPage = this.Page; _editOperation.UpdateMethod(); } else { if (rdlstPatientBenefit.SelectedValue != "0") { txtPatientBenefitDesc.Text = ""; } _saveOperation.WebPage = this.Page; _saveOperation.Xml_File = "PermanentImpairment.xml"; _saveOperation.SaveMethod(); txtPermanentImpairmentID.Text = _workersTemplate.GetWorkStatusLatestID(txtBillNumber.Text); } } catch (Exception ex) { Elmah.ErrorSignal.FromCurrentContext().Raise(ex); using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } string str2 = "Error Request=" + id + ".Please share with Technical support."; base.Response.Redirect("Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2); } //Method End using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } }
public void CanCreateSaveOperation() { RaftTestData testObject = new RaftTestData() { FirstName = "TestFirst", LastName = "Test Last", Dob = new DateTime(1976, 1, 1) }; SaveOperation operation = SaveOperation.For(testObject); Expect.AreEqual(4, operation.Properties.Count); foreach (DataProperty prop in operation.Properties) { OutLine(prop.ToJson(true), ConsoleColor.Yellow); } }
protected void btnSaveAndGoToNext_Click(object sender, EventArgs e) {//Logging Start string id = string.Format("Id: {0} Uri: {1}", Guid.NewGuid(), HttpContext.Current.Request.Url); using (Utils utility = new Utils()) { utility.MethodStart(id, System.Reflection.MethodBase.GetCurrentMethod()); } _saveOperation = new SaveOperation(); WorkerTemplate _obj = new WorkerTemplate(); try { if (_obj.CheckPatientExist("SP_MST_HISTORY", Session["PatientID"].ToString()) == false) { //txthdnInjury.Text = chklstInjury.SelectedValue; //txthdnHospitalization.Text = chklstHospitalization.SelectedValue; //txthdnPreviouslyTreated.Text = chkPreviouslyTreated.SelectedValue; _saveOperation.WebPage = this.Page; _saveOperation.Xml_File = "History.xml"; _saveOperation.SaveMethod(); } else { updatedata(); } Response.Redirect("ExamInformation.aspx", false); } catch (Exception ex) { Elmah.ErrorSignal.FromCurrentContext().Raise(ex); using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } string str2 = "Error Request=" + id + ".Please share with Technical support."; base.Response.Redirect("../Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2); } //Method End using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } }
protected void btnSave_Click(object sender, EventArgs e) { string id = string.Format("Id: {0} Uri: {1}", Guid.NewGuid(), HttpContext.Current.Request.Url); using (Utils utility = new Utils()) { utility.MethodStart(id, System.Reflection.MethodBase.GetCurrentMethod()); } _saveOperation = new SaveOperation(); try { if (Page.IsValid) { _saveOperation.WebPage = this.Page; _saveOperation.Xml_File = "Office.xml"; _saveOperation.SaveMethod(); BindGrid(); ClearControl(); lblMsg.Visible = true; if (((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).BT_REFERRING_FACILITY == true) { lblMsg.Text = "Office Saved Successfully ...!"; } else { lblMsg.Text = "Provider Saved Successfully ...!"; } Response.Write("<script>window.opener.location.replace('Bill_Sys_CaseMaster.aspx')</script>"); } } catch (Exception ex) { Elmah.ErrorSignal.FromCurrentContext().Raise(ex); using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } string str2 = "Error Request=" + id + ".Please share with Technical support."; base.Response.Redirect("Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2); } //Method End using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } }
protected void btnSave_Click(object sender, EventArgs e) { string id = string.Format("Id: {0} Uri: {1}", Guid.NewGuid(), HttpContext.Current.Request.Url); using (Utils utility = new Utils()) { utility.MethodStart(id, System.Reflection.MethodBase.GetCurrentMethod()); } if (txtCaseStatus.Text == "") { lblMsg.Visible = true; lblMsg.Text = "Insert all records"; } else { txtddlStatus.Text = ddl_Case_Status.SelectedValue.ToString(); utxtCaseStatus.Text = txtCaseStatus.Text.Trim(); _saveOperation = new SaveOperation(); try { _saveOperation.WebPage = this.Page; _saveOperation.Xml_File = "CaseStatus.xml"; _saveOperation.SaveMethod(); ClearControl(); grdCaseStatusList.XGridBind(); lblMsg.Visible = true; lblMsg.Text = "Case Status Saved Successfully ...!"; } catch (Exception ex) { Elmah.ErrorSignal.FromCurrentContext().Raise(ex); using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } string str2 = "Error Request=" + id + ".Please share with Technical support."; base.Response.Redirect("../Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2); } } //Method End using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } }
protected void btnSave_Click(object sender, EventArgs e) { if (RDO_MEDICAL_HISTORY_AFFECT_TREATMENT_NO.SelectedValue.Equals("")) { txtRDO_MEDICAL_HISTORY_AFFECT_TREATMENT_NO.Text = "-1"; } else { txtRDO_MEDICAL_HISTORY_AFFECT_TREATMENT_NO.Text = RDO_MEDICAL_HISTORY_AFFECT_TREATMENT_NO.SelectedValue; } _saveOperation = new SaveOperation(); _saveOperation.WebPage = this.Page; _saveOperation.Xml_File = "CM_INITIAL_EVAL_MedicalHistory.xml"; _saveOperation.SaveMethod(); Response.Redirect("Bill_Sys_CM_PhysicalStatus.aspx", false); }
protected void btnSave_Click(object sender, EventArgs e) { if (RDO_RHOMBERG_TEST.SelectedValue.Equals("")) { txtRDO_RHOMBERG_TEST.Text = "-1"; } else { txtRDO_RHOMBERG_TEST.Text = RDO_RHOMBERG_TEST.SelectedValue; } _saveOperation = new SaveOperation(); _saveOperation.WebPage = this.Page; _saveOperation.Xml_File = "CM_INITIAL_EVAL_NeuroLogicalExamination.xml"; _saveOperation.SaveMethod(); Response.Redirect("Bill_Sys_CM_DiagnosticImpresstion.aspx", false); }
protected void BtnSave_Click(object sender, EventArgs e) { string id = string.Format("Id: {0} Uri: {1}", Guid.NewGuid(), HttpContext.Current.Request.Url); using (Utils utility = new Utils()) { utility.MethodStart(id, System.Reflection.MethodBase.GetCurrentMethod()); } TXT_USTED_ERA.Text = RDO_USTED_ERA.SelectedIndex.ToString(); try { if (Page.IsValid) { SaveOperation _objsave = new SaveOperation(); _objsave.WebPage = this.Page; _objsave.Xml_File = "ECG_Form_Second_Page.xml"; _objsave.SaveMethod(); } Bill_Sys_CheckoutBO obj = new Bill_Sys_CheckoutBO(); if (obj.ChekECGDoctorSignPath(Convert.ToInt32(TXT_I_EVENT.Text))) { string sz_eventID = TXT_I_EVENT.Text; FillPDFValue(sz_eventID, ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME); } else { Page.ClientScript.RegisterClientScriptBlock(typeof(GridView), "Msg", "window.open('Bill_Sys_ECG_DoctorSign.aspx','Sign','toolbar=no,directories=no,menubar=no,scrollbars=no,status=no,resizable=no,width=700,height=575'); ", true); } } catch (Exception ex) { Elmah.ErrorSignal.FromCurrentContext().Raise(ex); using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } string str2 = "Error Request=" + id + ".Please share with Technical support."; base.Response.Redirect("Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2); } //Method End using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } }
protected void btnSaveAndGoToNext_Click(object sender, EventArgs e) { string id = string.Format("Id: {0} Uri: {1}", Guid.NewGuid(), HttpContext.Current.Request.Url); using (Utils utility = new Utils()) { utility.MethodStart(id, System.Reflection.MethodBase.GetCurrentMethod()); } _saveOperation = new SaveOperation(); WorkerTemplate _obj = new WorkerTemplate(); try { if (_obj.PatientExistCheckForWC4("SP_MST_EXAM_INFORMATION_NEW", Session["TEMPLATE_BILL_NO"].ToString()) == false) { _saveOperation.WebPage = this.Page; _saveOperation.Xml_File = "ExamInformation_New.xml"; _saveOperation.SaveMethod(); } else { updatedata(); } Save_Patient_Compliments(); Save_Patient_Injury(); Save_Patient_Physical_Exam(); Response.Redirect("Bill_Sys_DoctorOpinion.aspx", false); } catch (Exception ex) { Elmah.ErrorSignal.FromCurrentContext().Raise(ex); using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } string str2 = "Error Request=" + id + ".Please share with Technical support."; base.Response.Redirect("Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2); } //Method End using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } }
protected void btnSaveAndGoToNext_Click(object sender, EventArgs e) { string id = string.Format("Id: {0} Uri: {1}", Guid.NewGuid(), HttpContext.Current.Request.Url); using (Utils utility = new Utils()) { utility.MethodStart(id, System.Reflection.MethodBase.GetCurrentMethod()); } _saveOperation = new SaveOperation(); WorkerTemplate _obj = new WorkerTemplate(); try { if (_obj.PatientExistCheckForWC4("SP_MST_DOCTORS_OPINION_NEW", Session["TEMPLATE_BILL_NO"].ToString()) == false) { //txthdnHistoryOfInjury.Text = chkHistoryOfInjury.SelectedValue; //txthdnMedicalCauses.Text = chkMedicalCauses.SelectedValue ; //txthdnObjectiveFindings.Text = chkObjectiveFindings.SelectedValue; _saveOperation.WebPage = this.Page; _saveOperation.Xml_File = "DoctorOpinion_New.xml"; _saveOperation.SaveMethod(); } else { updatedata(); } Response.Redirect("Bill_Sys_PlanOfCare.aspx", false); } catch (Exception ex) { Elmah.ErrorSignal.FromCurrentContext().Raise(ex); using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } string str2 = "Error Request=" + id + ".Please share with Technical support."; base.Response.Redirect("Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2); } //Method End using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } }
protected void btnSave_Click(object sender, EventArgs e) { string id = string.Format("Id: {0} Uri: {1}", Guid.NewGuid(), HttpContext.Current.Request.Url); using (Utils utility = new Utils()) { utility.MethodStart(id, System.Reflection.MethodBase.GetCurrentMethod()); } _saveOperation = new SaveOperation(); try { if (Page.IsValid) { _saveOperation.WebPage = this.Page; // Pass Current web form to SaveOperation. _saveOperation.Xml_File = "Bill_Sys_CO_Chiro_Treatment_Plan.xml"; // Pass xml file to SaveOperation _saveOperation.SaveMethod(); // Call save method of SaveOperation. Will save all information from web form. } Bill_Sys_CheckoutBO obj = new Bill_Sys_CheckoutBO(); if (obj.ChekCOChiroSignPath(Convert.ToInt32(TXT_EVENT_ID.Text))) { string sz_eventID = TXT_EVENT_ID.Text; FillPDFValue(sz_eventID, ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_ID, ((Bill_Sys_BillingCompanyObject)Session["BILLING_COMPANY_OBJECT"]).SZ_COMPANY_NAME); } else { // Page.ClientScript.RegisterClientScriptBlock(typeof(GridView), "Msg", "window.open('Bill_Sys_CO_Chiro_DoctorSign.aspx','Sign','toolbar=no,directories=no,menubar=no,scrollbars=no,status=no,resizable=no,width=700,height=575'); ", true); Page.ClientScript.RegisterClientScriptBlock(typeof(GridView), "Msg", "window.open('Bill_Sys_CO_Chiro_Signature.aspx','Sign','toolbar=no,directories=no,menubar=no,scrollbars=no,status=no,resizable=no,width=700,height=575'); ", true); } } catch (Exception ex) { Elmah.ErrorSignal.FromCurrentContext().Raise(ex); using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } string str2 = "Error Request=" + id + ".Please share with Technical support."; base.Response.Redirect("Bill_Sys_ErrorPage.aspx?ErrMsg=" + str2); } //Method End using (Utils utility = new Utils()) { utility.MethodEnd(id, System.Reflection.MethodBase.GetCurrentMethod()); } }
private void SaveAsToolStripMenuItem_Click(object sender, EventArgs e) { DataDictionary.Dictionary activeDictionary = GetActiveDictionary(); if (activeDictionary != null) { SaveFileDialog saveFileDialog = new SaveFileDialog(); saveFileDialog.Title = "Saving EFS file " + activeDictionary.Name; saveFileDialog.Filter = "EFS files (*.efs)|*.efs|All Files (*.*)|*.*"; if (saveFileDialog.ShowDialog(this) == DialogResult.OK) { activeDictionary.FilePath = saveFileDialog.FileName; SaveOperation saveOperation = new SaveOperation(this, activeDictionary); ProgressDialog dialog = new ProgressDialog("Saving file " + activeDictionary.FilePath, saveOperation); dialog.ShowDialog(); } } }
protected override void Act() { saveOperation = container.Resolve<SaveOperation>(); }