예제 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            permissionVerify pv = new permissionVerify(3);

            urlQueryId = Request.QueryString["id"];
            getOrderLog();
        }
예제 #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            permissionVerify pv = new permissionVerify(2);

            urlQueryId = Request.QueryString["id"];
            if (!IsPostBack)
            {
                if (urlQueryId == null)
                {
                    Response.Write("<script type=\"text/javascript\">alert (\"该工单不存在!\"); window.location.href=\"orderQuery.aspx\";</script>");
                }
                else
                {
                    int       toolType;
                    DataTable productDt = orderLogic.productQuery(urlQueryId);
                    if (productDt == null)
                    {
                        Response.Write("<script type=\"text/javascript\">alert (\"该工单不存在!\"); window.location.href=\"orderQuery.aspx\";</script>");
                        return;
                    }
                    else
                    {
                        toolType = Convert.ToInt16(productDt.Rows[0]["ToolType"]);
                        getInspectionResult(toolType);
                        getToolFunctionTest(toolType);
                    }
                }
            }
        }
예제 #3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            permissionVerify pv = new permissionVerify(4);

            if (!IsPostBack)
            {
                urlQueryId = Request.QueryString["id"];
                getUserDetails();
            }
        }
예제 #4
0
        protected void Page_Load(object sender, EventArgs e)
        {
            permissionVerify pv = new permissionVerify(3);

            pageStr   = Request.QueryString["page"];
            queryText = Request.QueryString["str"];
            int pageInt;

            if (int.TryParse(pageStr, out pageInt))
            {
                if (pageInt > 0)
                {
                    pageIndex = pageInt;
                }
                else
                {
                    pageIndex = 1;
                }
            }
            else
            {
                pageIndex = 1;
            }

            DataTable dt;

            if (queryText == null || queryText.Length == 0)
            {
                dt = customerLogic.customerQuery(pageIndex, out pageAmount);
            }
            else
            {
                dt = customerLogic.customerQueryByCustomerNameVaguely(HttpUtility.UrlDecode(queryText), pageIndex, out pageAmount);
            }

            if (dt != null)
            {
                lb_tips.Text                = "";
                lb_tips.Visible             = false;
                rpt_customerinfo.DataSource = dt;
                rpt_customerinfo.DataBind();
                pn_table.Visible = true;
                pageController(pageIndex, pageAmount);

                hf_query_text.Value = HttpUtility.UrlDecode(queryText);
                hf_pageindex.Value  = pageIndex.ToString();
            }
            else
            {
                lb_tips.Text     = "没有符合条件的客户!";
                lb_tips.Visible  = true;
                pn_table.Visible = false;
            }
        }
예제 #5
0
        protected void Page_Load(object sender, EventArgs e)
        {
            permissionVerify pv = new permissionVerify(3);

            DataTable dt = customerLogic.unverifiedCustomerQuery();

            if (dt != null)
            {
                lb_tips.Text                = "";
                lb_tips.Visible             = false;
                rpt_customerinfo.DataSource = dt;
                rpt_customerinfo.DataBind();
                pn_table.Visible = true;
            }
            else
            {
                lb_tips.Text     = "没有待审核客户!";
                lb_tips.Visible  = true;
                pn_table.Visible = false;
            }
        }
예제 #6
0
 protected void Page_Load(object sender, EventArgs e)
 {
     permissionVerify pv = new permissionVerify(4);
 }