Exemplo n.º 1
0
    protected void grid_job_HtmlEditFormCreated(object sender, ASPxGridViewEditFormEventArgs e)
    {
        if (this.grid_job.EditingRowVisibleIndex > -1)
        {
            ASPxPageControl pageControl    = this.grid_job.FindEditFormTemplateControl("pageControl") as ASPxPageControl;;
            ASPxTextBox     txt_ClientName = this.grid_job.FindEditFormTemplateControl("txt_ClientName") as ASPxTextBox;
            txt_ClientName.Text = EzshipHelper.GetPartyName(this.grid_job.GetRowValues(this.grid_job.EditingRowVisibleIndex, new string[] { "ClientId" }));

            ASPxComboBox cmb_JobStatus = this.grid_job.FindEditFormTemplateControl("cmb_JobStatus") as ASPxComboBox;
            ASPxButton   btn_Confirm   = this.grid_job.FindEditFormTemplateControl("btn_Confirm") as ASPxButton;
            string       StatusCode    = SafeValue.SafeString(this.grid_job.GetRowValues(this.grid_job.EditingRowVisibleIndex, new string[] { "StatusCode" }), "USE");
            switch (StatusCode)
            {
            case "CLS":
                //ASPxButton btnCLS = this.grid_job.FindEditFormTemplateControl("btn_JobClose") as ASPxButton;
                ASPxButton btnCLS = this.grid_job.FindEditFormTemplateControl("btn_JobClose") as ASPxButton;
                btnCLS.Text = "Open";
                break;

            case "CNL":
                ASPxButton btnCNL = this.grid_job.FindEditFormTemplateControl("btn_JobVoid") as ASPxButton;
                btnCNL.Text = "UnVoid";

                break;

            default:
                break;
            }

            EzshipHelper_Authority.Bind_Authority(this.grid_job);
            EzshipHelper_Authority.Bind_Authority(pageControl);
        }
    }
Exemplo n.º 2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            //if (Request.QueryString["ContStatus"] != null && Request.QueryString["ContStatus"].ToString() != "")
            //{
            //    cbb_StatusCode.Text = Request.QueryString["ContStatus"].ToString();
            //}
            //else
            //{
            //    cbb_StatusCode.Text = "All";
            //}
            //cb_ContStatus0.Checked = false;
            cb_ContStatus1.Checked = false;
            cb_ContStatus2.Checked = false;
            cb_ContStatus3.Checked = false;
            cb_ContStatus4.Checked = false;

            if (Request.QueryString["type"] != null)
            {
                search_JobType.Value  = SafeValue.SafeString(Request.QueryString["type"]);
                cbb_new_jobtype.Value = SafeValue.SafeString(Request.QueryString["type"]);
                lbl_type.Text         = SafeValue.SafeString(Request.QueryString["type"]);
            }
            txt_search_dateFrom.Date = DateTime.Now.AddDays(-7);
            txt_search_dateTo.Date   = DateTime.Now;
            btn_search_Click(null, null);


            EzshipHelper_Authority.Bind_Authority(this.Page);
        }
    }
Exemplo n.º 3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            //if (Request.QueryString["ContStatus"] != null && Request.QueryString["ContStatus"].ToString() != "")
            //{
            //    cbb_StatusCode.Text = Request.QueryString["ContStatus"].ToString();
            //}
            //else
            //{
            //    cbb_StatusCode.Text = "All";
            //}
            //cb_ContStatus0.Checked = false;
            lb_new_WareHouseId.Text = System.Configuration.ConfigurationManager.AppSettings["Warehouse"].Trim();

            cb_cs_New.Checked        = true;
            cb_cs_Import.Checked     = true;
            cb_cs_Return.Checked     = true;
            cb_cs_Collection.Checked = true;
            cb_cs_Export.Checked     = true;
            cb_cs_WHSLD.Checked      = true;
            cb_cs_WHSMT.Checked      = true;
            cb_cs_CustomerLD.Checked = true;
            cb_cs_CustomerMT.Checked = true;


            txt_search_dateFrom.Date = DateTime.Now;
            txt_search_dateTo.Date   = DateTime.Now;
            btn_search_Click(null, null);


            EzshipHelper_Authority.Bind_Authority(this.Page);
        }
    }
Exemplo n.º 4
0
 protected void Page_Init(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         this.txt_from.Date = DateTime.Today.AddDays(-30);
         this.txt_end.Date  = DateTime.Today;
         EzshipHelper_Authority.Bind_Authority(this.Page);
     }
 }
Exemplo n.º 5
0
 protected void Page_Init(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         this.txt_from.Date = new DateTime(2010, 1, 1); // DateTime.Today.AddDays(-90);
         this.txt_end.Date  = DateTime.Today.AddDays(30);
         //this.date_IssueDate.Date = DateTime.Today;
         EzshipHelper_Authority.Bind_Authority(this.Page);
     }
 }
Exemplo n.º 6
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            txt_search_dateFrom.Date = DateTime.Now.AddDays(-7);
            txt_search_dateTo.Date   = DateTime.Now;
            btn_search_Click(null, null);


            EzshipHelper_Authority.Bind_Authority(this.Page);
        }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            txt_new_WareHouseId.Text = System.Configuration.ConfigurationManager.AppSettings["Warehouse"].Trim();
            txt_search_dateFrom.Date = DateTime.Now;//.AddDays(-15);
            txt_search_dateTo.Date   = DateTime.Now.AddDays(8);
            //btn_search_Click(null, null);


            EzshipHelper_Authority.Bind_Authority(this.Page);
        }
    }
Exemplo n.º 8
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (Request.QueryString["type"] != null)
            {
                search_JobType.Value  = SafeValue.SafeString(Request.QueryString["type"]);
                cbb_new_jobtype.Value = SafeValue.SafeString(Request.QueryString["type"]);
                lbl_type.Text         = SafeValue.SafeString(Request.QueryString["type"]);
            }
            txt_search_dateFrom.Date = DateTime.Now.AddDays(-7);
            txt_search_dateTo.Date   = DateTime.Now;
            btn_search_Click(null, null);


            EzshipHelper_Authority.Bind_Authority(this.Page);
        }
    }
Exemplo n.º 9
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (Request.QueryString["ContStatus"] != null && Request.QueryString["ContStatus"].ToString() != "")
            {
                cbb_StatusCode.Text = Request.QueryString["ContStatus"].ToString();
            }
            else
            {
                cbb_StatusCode.Text = "All";
            }
            txt_search_dateFrom.Date = DateTime.Now;
            txt_search_dateTo.Date   = DateTime.Now;
            btn_search_Click(null, null);


            EzshipHelper_Authority.Bind_Authority(this.Page);
        }
    }
Exemplo n.º 10
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (Request.QueryString["ContStatus"] != null && Request.QueryString["ContStatus"].ToString() != "")
            {
                cbb_StatusCode.Text = Request.QueryString["ContStatus"].ToString();
            }
            else
            {
                cbb_StatusCode.Text = "All";
            }
            txt_new_WareHouseId.Text = System.Configuration.ConfigurationManager.AppSettings["Warehouse"].Trim();
            txt_search_dateFrom.Date = DateTime.Now;//.AddDays(-15);
            txt_search_dateTo.Date   = DateTime.Now;
            //btn_search_Click(null, null);


            EzshipHelper_Authority.Bind_Authority(this.Page);
        }
    }
Exemplo n.º 11
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (Request.QueryString["type"] != null && Request.QueryString["type"].ToString() != "")
            {
                search_JobType.Text = Request.QueryString["type"].ToString();
            }
            //else
            //{
            //    cbb_StatusCode.Text = "All";
            //}
            //cb_ContStatus0.Checked = false;
            lb_new_WareHouseId.Text = System.Configuration.ConfigurationManager.AppSettings["Warehouse"].Trim();

            //cb_cs_New.Checked = true;
            //cb_cs_Start.Checked = true;
            //cb_cs_Delivered.Checked = true;
            //cb_cs_Depart.Checked = true;
            //cb_cs_Arrival.Checked = true;
            //cb_cs_Returned.Checked = true;
            //cb_cs_WHSLD.Checked = true;
            //cb_cs_WHSMT.Checked = true;

            cb_cs_Pending.Checked   = true;
            cb_cs_Started.Checked   = true;
            cb_cs_Completed.Checked = true;
            cb_cs_Cancel.Checked    = false;


            txt_search_dateFrom.Date = DateTime.Today;
            txt_search_dateTo.Date   = DateTime.Today;
            btn_search_Click(null, null);


            EzshipHelper_Authority.Bind_Authority(this.Page);
        }
    }
Exemplo n.º 12
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            cb_cs_New.Checked        = true;
            cb_cs_Import.Checked     = true;
            cb_cs_Return.Checked     = true;
            cb_cs_Collection.Checked = true;
            cb_cs_Export.Checked     = true;
            cb_cs_WHSLD.Checked      = true;
            cb_cs_WHSMT.Checked      = true;
            cb_cs_CustomerLD.Checked = true;
            cb_cs_CustomerMT.Checked = true;


            txt_search_dateFrom.Date = DateTime.Now;
            txt_search_dateTo.Date   = DateTime.Now;
            btn_search_Click(null, null);


            EzshipHelper_Authority.Bind_Authority(this.Page);
        }
    }
Exemplo n.º 13
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            if (Request.QueryString["type"] != null)
            {
                search_JobType.Value  = SafeValue.SafeString(Request.QueryString["type"]);
                cbb_new_jobtype.Value = SafeValue.SafeString(Request.QueryString["type"]);
                lbl_type.Text         = SafeValue.SafeString(Request.QueryString["type"]);
            }
            string userId   = HttpContext.Current.User.Identity.Name;
            string sql_user = string.Format(@"select CustId from [dbo].[User] where Name='{0}'", userId);
            string custId   = SafeValue.SafeString(ConnectSql.ExecuteScalar(sql_user));
            btn_ClientId.Text        = custId;
            btn_new_ClientId.Text    = custId;
            txt_search_dateFrom.Date = DateTime.Now.AddDays(-7);
            txt_search_dateTo.Date   = DateTime.Now;
            btn_search_Click(null, null);


            EzshipHelper_Authority.Bind_Authority(this.Page);
        }
    }