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"]; }
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(); }