Пример #1
0
    protected void btnSetLitigate_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());
        }
        string _checkID     = "";
        string _listCheckID = "";
        int    _flag        = 1;
        string _billNumber  = "";
        string _billNoList  = "";

        _reportBO = new Bill_Sys_ReportBO();


        try
        {
            foreach (DataGridItem dgi in grdVerification.Items)
            {
                if (((CheckBox)dgi.FindControl("chkSelect")).Checked)
                {
                    _billNumber = _billNumber + "'" + dgi.Cells[2].Text + "',";
                }
            }

            _billNoList = _billNumber.Substring(0, _billNumber.Length - 1);
            ArrayList _arrlist = new ArrayList();
            _arrlist.Add(_billNoList);
            _arrlist.Add(txtCompanyID.Text);
            _arrlist.Add(_flag);

            _reportBO.setLitigate(_arrlist);

            BindGrid();
        }
        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());
        }
    }