예제 #1
0
    protected void getAdjusterData()
    {
        Bill_Sys_Adjuster billSysAdjuster = new Bill_Sys_Adjuster();
        string            str             = "";

        str = (this.hdadjusterCode.Value != "" ? this.hdadjusterCode.Value : billSysAdjuster.getAdjusterID(this.txtCompanyID.Text, this.txtCaseID.Text));
        this.hdadjusterCode.Value = str;
        Patient_TVBO patientTVBO = new Patient_TVBO();
        DataSet      dataSet     = new DataSet();

        dataSet = patientTVBO.GetAdjusterInfoForUpdate(str, this.txtCompanyID.Text);
        if (dataSet.Tables[0].Rows.Count > 0)
        {
            this.txtAdjusterPopupName.Text      = dataSet.Tables[0].Rows[0]["SZ_ADJUSTER_NAME"].ToString();
            this.txtAdjusterPopupPhone.Text     = dataSet.Tables[0].Rows[0]["SZ_PHONE"].ToString();
            this.txtAdjusterPopupExtension.Text = dataSet.Tables[0].Rows[0]["SZ_EXTENSION"].ToString();
            this.txtAdjusterPopupFax.Text       = dataSet.Tables[0].Rows[0]["SZ_FAX"].ToString();
            this.txtAdjusterPopupEmail.Text     = dataSet.Tables[0].Rows[0]["SZ_EMAIL"].ToString();
            this.txtAdjusterPopupAddress.Text   = dataSet.Tables[0].Rows[0]["SZ_ADDRESS"].ToString();
            this.txtAdjusterPopupCity.Text      = dataSet.Tables[0].Rows[0]["SZ_CITY"].ToString();
            this.txtAdjusterPopupState.Text     = dataSet.Tables[0].Rows[0]["SZ_STATE"].ToString();
            this.txtAdjusterPopupZip.Text       = dataSet.Tables[0].Rows[0]["SZ_ZIP"].ToString();
            this.txtAdjusterPopupName.Enabled   = false;
        }
    }
예제 #2
0
    protected void btnSaveAdjuster_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
        {
            Bill_Sys_Adjuster billSysAdjuster = new Bill_Sys_Adjuster();
            ArrayList         arrayLists      = new ArrayList();
            ArrayList         arrayLists1     = new ArrayList();
            arrayLists.Add("");
            arrayLists.Add(this.txtAdjusterPopupName.Text);
            arrayLists.Add(this.txtAdjusterPopupAddress.Text);
            arrayLists.Add(this.txtAdjusterPopupCity.Text);
            arrayLists.Add(this.txtAdjusterPopupState.Text);
            arrayLists.Add(this.txtAdjusterPopupZip.Text);
            arrayLists.Add(this.txtAdjusterPopupPhone.Text);
            arrayLists.Add(this.txtAdjusterPopupExtension.Text);
            arrayLists.Add(this.txtAdjusterPopupFax.Text);
            arrayLists.Add(this.txtAdjusterPopupEmail.Text);
            arrayLists.Add(this.txtCompanyID.Text);
            arrayLists.Add(this.txtCaseID.Text);
            billSysAdjuster.saveAdjuster(arrayLists);
            string latestID = billSysAdjuster.getLatestID("SP_MST_ADJUSTER", this.txtCompanyID.Text);
            arrayLists1.Add(latestID);
            arrayLists1.Add(this.txtAdjusterPopupName.Text);
            arrayLists1.Add(this.txtAdjusterPopupAddress.Text);
            arrayLists1.Add(this.txtAdjusterPopupCity.Text);
            arrayLists1.Add(this.txtAdjusterPopupState.Text);
            arrayLists1.Add(this.txtAdjusterPopupZip.Text);
            arrayLists1.Add(this.txtAdjusterPopupPhone.Text);
            arrayLists1.Add(this.txtAdjusterPopupExtension.Text);
            arrayLists1.Add(this.txtAdjusterPopupFax.Text);
            arrayLists1.Add(this.txtAdjusterPopupEmail.Text);
            arrayLists1.Add(this.txtCompanyID.Text);
            arrayLists1.Add(this.txtCaseID.Text);
            if (this.ChkAddToCase.Checked)
            {
                billSysAdjuster.updateCaseMaster(arrayLists1);
            }
            this.txtAdjusterPopupName.Text      = "";
            this.txtAdjusterPopupAddress.Text   = "";
            this.txtAdjusterPopupCity.Text      = "";
            this.txtAdjusterPopupState.Text     = "";
            this.txtAdjusterPopupZip.Text       = "";
            this.txtAdjusterPopupPhone.Text     = "";
            this.txtAdjusterPopupExtension.Text = "";
            this.txtAdjusterPopupFax.Text       = "";
            this.txtAdjusterPopupEmail.Text     = "";
            this.hdacode.Value        = "";
            this.hdadjusterCode.Value = "";
            this.hdfadjname.Value     = "";
            this.usrMessage.SetMessageType(UserControl_ErrorMessageControl.DisplayType.Type_UserMessage);
            this.usrMessage.PutMessage("Save sucessfully");
            this.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());
        }
    }