Esempio n. 1
0
        protected void LinkButton1_Click1(object sender, EventArgs e)
        {
            if (Session["Comm_CGPONo"] != null)
            {
                CG_POOrder model = POSer.GetModel(Convert.ToInt32(Session["Comm_CGPONo"]));
                txtPOGuestName.Text    = model.GuestName;
                txtPOName.Text         = model.POName;
                txtPONo.Text           = model.PONo;
                Session["Comm_CGPONo"] = null;
                #region 需要审批的需要指定该项目AE

                try
                {
                    var user = new SysUserService().getAllUserByLoginName(string.Format(" and loginName='{0}'", model.AE))[0];
                    //ddlUser.Text = user.Id.ToString();
                    //ddlUser.Enabled = false;
                    ddlPers.Text    = user.Id.ToString();
                    ddlPers.Enabled = false;
                }
                catch (Exception)
                {
                    base.ClientScript.RegisterStartupScript(base.GetType(), null, "<script>alert('没有找到对应的AE!');</script>");
                }
                #endregion
            }
        }
 protected void LinkButton2_Click(object sender, EventArgs e)
 {
     if (Session["Comm_CGPONo"] != null)
     {
         CG_POOrder model = POSer.GetModel(Convert.ToInt32(Session["Comm_CGPONo"]));
         txtSupplier.Text       = model.GuestName;
         txtPOName.Text         = model.POName;
         txtPONo.Text           = model.PONo;
         Session["Comm_CGPONo"] = null;
     }
 }