コード例 #1
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            _pos     = new dtPosit();
            _ts      = new dtTs();
            _lang    = CurrLang;
            _head_id = Request.QueryString["rowid"];
            _lab_id  = Request.QueryString["lab_id"];
            //2CA1C1C5-D0C2-405C-91D0-F45DDF9AB462 Thomas.Hsiao

            msg.Value = "";


            getUnit(cbo_unit);
            if (!IsPostBack)
            {
                try
                {
                    ViewState[_ts.tag] = _ts.Container;
                    getLab(_lab_id);
                    getReport(_lab_id);
                }
                catch (Exception ex)
                {
                    Response.Write(_lab_id + "<br>" + ex.Message + "<br>");
                }
                _leader = "2CA1C1C5-D0C2-405C-91D0-F45DDF9AB462"; //"02CA2090-C5D0-455B-A671-5D7168D08559";


                getPosition(_lab_id);
                setDisplay();
                Init();
                UpdateGV();
            }
            else
            {
                _pos.Container = (DataTable)ViewState[_pos.tag];
                _ts.Container  = (DataTable)ViewState[_ts.tag];
                _leader        = txt_leader_id.Value;
            }

            txt_leader.Text = Utility.GetUName(_leader);
            btn_upload.Text = getStr("upload_file");
        }
コード例 #2
0
ファイル: LabEdit.aspx.cs プロジェクト: minaik-com-tw/EIP
        protected void Page_Load(object sender, System.EventArgs e)
        {
            msg.Value = "";

            _pos     = new dtPosit();
            _ts      = new dtTs();
            _lang    = CurrLang;
            _head_id = Request.QueryString["rowid"];
            _lab_id  = Request.QueryString["lab_id"];
            //2CA1C1C5-D0C2-405C-91D0-F45DDF9AB462 Thomas.Hsiao


            getUnit(cbo_unit);
            if (!IsPostBack)
            {
                try
                {
                    ViewState[_ts.tag] = _ts.Container;

                    _leader = "2CA1C1C5-D0C2-405C-91D0-F45DDF9AB462";
                }
                catch (Exception ex)
                {
                    Response.Write(_lab_id + "<br>" + ex.Message + "<br>");
                }
                getPosition(_lab_id);

                Init();
                setDisplay();
                UpdateGV();
            }
            else
            {
                _pos.Container = (DataTable)ViewState[_pos.tag];
                _ts.Container  = (DataTable)ViewState[_ts.tag];
                string logonid = txt_leader.Text;
                _leader = Utility.GetUserID(logonid);
            }

            Dictionary <string, string> US = Utility.GetUIDInfo(_leader);

            txt_leader.Text = US["LOGONID"];
        }
コード例 #3
0
ファイル: LabView.aspx.cs プロジェクト: minaik-com-tw/EIP
        protected void Page_Load(object sender, System.EventArgs e)
        {
            _pos     = new dtPosit();
            _ts      = new dtTs();
            _lang    = CurrLang;
            _head_id = Request.QueryString["rowid"];
            _lab_id  = Request.QueryString["lab_id"];

            if (!IsPostBack)
            {
                ViewState[_pos.tag] = _pos.Container;
                ViewState[_ts.tag]  = _ts.Container;

                getLab(_lab_id);
                getPosition(_lab_id);
            }
            else
            {
                _pos.Container = (DataTable)ViewState[_pos.tag];
                _ts.Container  = (DataTable)ViewState[_ts.tag];
            }
            Init();
        }