コード例 #1
0
 protected void btnAddCompany_Click(object sender, EventArgs e)
 {
     if (!string.IsNullOrEmpty(ctlCompanyTextboxAutoComplete.CompanyCode))
     {
         if (string.IsNullOrEmpty(txtCompanyList.Text))
         {
             txtCompanyList.Text += ctlCompanyTextboxAutoComplete.CompanyCode;
         }
         else
         {
             txtCompanyList.Text += "," + ctlCompanyTextboxAutoComplete.CompanyCode;
         }
     }
     ctlCompanyTextboxAutoComplete.ResetValue();
     UpdatePanelSummaryExpenseReport.Update();
 }
コード例 #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                this.SetRequestType();

                if (Request.Cookies[ApplicationMode + "SummaryExpenseCookie_" + UserAccount.UserID] != null)
                {
                    ctlDropDownDocType.SelectedValue = Server.HtmlEncode(Request.Cookies[ApplicationMode + "SummaryExpenseCookie_" + UserAccount.UserID]["docTypeID"]);
                    ctlFromDocDate.DateValue         = Server.HtmlEncode(Request.Cookies[ApplicationMode + "SummaryExpenseCookie_" + UserAccount.UserID]["FromDocDate"]);
                    ctlToDocDate.DateValue           = Server.HtmlEncode(Request.Cookies[ApplicationMode + "SummaryExpenseCookie_" + UserAccount.UserID]["ToDocDate"]);
                    txtCompanyList.Text = Server.HtmlEncode(Request.Cookies[ApplicationMode + "SummaryExpenseCookie_" + UserAccount.UserID]["Company"]);
                }

                if (!string.IsNullOrEmpty(Request.QueryString["exportType"]))
                {
                    if (Request.QueryString["exportType"].Equals("excel"))
                    {
                        this.ExportSummaryExpenseReportExcel();
                    }
                }
                UpdatePanelSummaryExpenseReport.Update();
            }
        }