Ejemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            tsa_id = Request.QueryString["tsa_id"];
            if (!IsPostBack)
            {
                InitInfo();
                InitGridview();
                TM_BasicFun.BindCklShowHiddenItems("Input", cklHiddenShow);
                this.Form.DefaultButton = "";
                // this.btnHidden_OnClick(null, null);
                //this.btnHiddenPaper_OnClick(null, null);
                //hkoutside.NavigateUrl = "TM_OutSide_Add.aspx?tsa_id=" + tsa_id;
                hpView.NavigateUrl = "TM_Task_View.aspx?time=" + DateTime.Now.ToString() + "&action=" + tsaid.Text;

                HyperLink3.NavigateUrl = "TM_OrgDataImportAll.aspx?TaskID=" + tsaid.Text;


                //hylKUCheck.NavigateUrl = "TM_WeightKuCheck.aspx?TaskID=" + tsaid.Text.Trim();
            }

            //this.CheckZeroXuHaoExist();
            this.OrgInputNum();

            if (Session["UserID"] == null || Session["UserID"].ToString() == "")
            {
                ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "", "alert('用户信息丢失,导致您无法保存数据!!!\\r\\r提示:如果您有未保存的数据,请不要关闭当前页面,重新打开登录界面登录后即可保存');", true);/////window.location.reload();
                return;
            }
        }
Ejemplo n.º 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     tsa_id     = Request.QueryString["tsaid"];
     EditZongXu = Request.QueryString["zongxu"];
     action     = Request.QueryString["action"];
     if (!IsPostBack)
     {
         InitInfo();
         InitGridview();
         TM_BasicFun.BindCklShowHiddenItems("Input", cklHiddenShow);
         this.Form.DefaultButton = "";
     }
 }
Ejemplo n.º 3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         this.PageInit();
         TM_BasicFun.BindCklShowHiddenItems("OrgView", cklHiddenShow);
         this.GetRead();
     }
     else
     {
         this.GetListName();
         ViewState["CurrentUCPaging"] = "UCPagingOrg";
         this.InitVar(UCPagingOrg, viewtable, "BM_ID", "*,cast(BM_SINGNUMBER as varchar)+' | '+cast(BM_NUMBER as varchar)+' | '+cast(BM_PNUMBER as varchar) AS NUMBER", "dbo.f_formatstr(" + ddlSort.SelectedValue.ToString() + ", '.')", ViewState["Org"].ToString(), 0, 30);
     }
 }
Ejemplo n.º 4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         ((Image)Master.FindControl("Image2")).Visible = false;
         ((Image)Master.FindControl("Image3")).Visible = false;
         TM_BasicFun.BindCklShowHiddenItems("Copy", cklHiddenShow);
         this.InitInfo();
         this.GetData();
     }
     if (Session["UserID"] == null || Session["UserID"].ToString() == "")
     {
         ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "", "alert('用户信息丢失,导致您无法保存数据!!!\\r\\r提示:如果您有未保存的数据,请不要关闭当前页面,重新打开登录界面登录后即可保存');", true);/////window.location.reload();
         return;
     }
 }
Ejemplo n.º 5
0
        protected void Page_Load(object sender, EventArgs e)
        {
            tsa_id = Request.QueryString["TaskID"];
            if (!IsPostBack)
            {
                InitInfo();
                InitGridview();
                TM_BasicFun.BindCklShowHiddenItems("MsOrgInputMode", cklHiddenShow);
                this.Form.DefaultButton = "";
                hkoutside.NavigateUrl   = "TM_OutSide_Add.aspx?tsa_id=" + tsa_id;
                hpView.NavigateUrl      = "TM_Task_View.aspx?action=" + tsaid.Text;
            }

            this.CheckZeroXuHaoExist();
            this.OrgInputNum();

            if (Session["UserID"] == null || Session["UserID"].ToString() == "")
            {
                ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "", "alert('用户信息丢失,导致您无法保存数据!!!\\r\\r提示:如果您有未保存的数据,请不要关闭当前页面,重新打开登录界面登录后即可保存');", true);/////window.location.reload();
                return;
            }
        }