Пример #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         if (!Page.IsPostBack)
         {
             btnCancel.Visible      = true;
             btnSubmit.Visible      = true;
             trConvertToMTO.Visible = false;
             objwscCustomerComplaint.BindCGExeFeedback(ddlGCExecutive);
             BindRecord();
             if (trViewComentCG.Visible == true && hndFeedBackTypeID.Value == "1" && hndIsConvertMTO.Value == "True")
             {
                 trConvertToMTO.Visible = true;
             }
             else
             {
                 trConvertToMTO.Visible = false;
             }
             if (lblComplaintRefNo.Text != "")
             {
                 trComplaintRefNo.Visible = true;
             }
             else
             {
                 trComplaintRefNo.Visible = false;
             }
         }
     }
     catch (Exception ex)
     {
         CommonClass.WriteErrorErrFile(Request.RawUrl.ToString(), ex.StackTrace.ToString() + "-->" + ex.Message.ToString());
     }
 }
Пример #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        //RegularExpressionValidator2.IsValid = true;
        sqlParamSrh[3].Value = int.Parse(rdoboth.SelectedValue);
        sqlParamSrh[4].Value = Membership.GetUser().UserName.ToString();
        if (!Page.IsPostBack)
        {
            TimeSpan duration = new TimeSpan(0, 0, 0, 0);
            txtxPurchaseDate.Text = DateTime.Now.Add(duration).ToShortDateString();

            objCommonClass.BindDataGrid(gvComm, "uspWSCCustomerRegistration", true, sqlParamSrh, lblRowCount);
            //objCommonClass.BindDataGrid(gvComm, "uspWSCCustomerRegistration", true, sqlParamSrh);
            ViewState["Column"] = "CreatedDate";
            ViewState["Order"]  = "desc";
            //File Upload Tem Create datatable Grid
            DataTable  dTableF     = new DataTable("tblInsert");
            DataColumn dClFileName = new DataColumn("FileName", System.Type.GetType("System.String"));
            dTableF.Columns.Add(dClFileName);
            ViewState["dTableFile"] = dTableF;
            //End
            //Hide and Unhide some info
            tblInformation.Visible = false;
            //End
            objwscCustomerComplaint.BindCountry(ddlCountry);
            ddlState.Items.Insert(0, new ListItem("Select", "0"));
            ddlCity.Items.Insert(0, new ListItem("Select", "0"));
            objwscCustomerComplaint.BindFeedbackType(ddlFeedbackType);
            objwscCustomerComplaint.BindProductDiv(ddlProductDiv);
            ddlProductLine.Items.Insert(0, new ListItem("Select", "0"));
            objwscCustomerComplaint.BindCGExeFeedback(ddlGCExecutive);
        }
        System.Threading.Thread.Sleep(int.Parse(ConfigurationManager.AppSettings["AjaxPleaseWaitTime"]));
    }