Beispiel #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string NoneMIS_AU = "../../../Default.aspx";
            string NoneLogin  = "******";

            GlobalAnnounce.validateSession.validate_AU(this.Page, NoneMIS_AU, NoneLogin, 11);
            if (!IsPostBack)
            {
                FMOS.DataSource = GlobalAnnounce.serviceDB.getpartno();
                FMOS.DataBind();

                FPS.DataSource = GlobalAnnounce.serviceDB.getpartsn();
                FPS.DataBind();
            }

            try
            {
                int id;
                id = int.Parse(Request["id"]);

                servicelog = GlobalAnnounce.serviceDB.search_slog(id);
                cpname     = GlobalAnnounce.serviceDB.search_company(servicelog.Rows[0]["companyID"].ToString());


                ID.Text        = servicelog.Rows[0]["ID"].ToString();
                productsn.Text = servicelog.Rows[0]["productSN"].ToString();
                describec.Text = servicelog.Rows[0]["describec"].ToString();
            }
            catch
            {
                Response.Write("<script>alert('ERROR!!');location.href='/Service/Status.aspx';</script>");
            }
        }