Ejemplo n.º 1
0
        private void Page_Load(object sender, System.EventArgs e)
        {
            // 在此处放置用户代码以初始化页面
            if (Session["Login"] == null)
            {
                Response.Redirect("../Exit.aspx");
                return;
            }
            string    strAssid  = Request.QueryString["aid"];
            string    strCardid = Request.QueryString["cid"];
            Hashtable htapp     = (Hashtable)Application["appconf"];
            string    strcons   = (string)htapp["cons"];

            busi = new BusiComm.BusiQuery(strcons);

            CMSMStruct.LoginStruct ls1 = (CMSMStruct.LoginStruct)Session["Login"];
            if (!IsPostBack)
            {
                Session.Remove("asold");
                Session.Remove("asnew");
                CMSMStruct.AssociatorStruct ass1 = busi.GetAssDetailInfo(strAssid, strCardid);
                txtAssID.Text       = ass1.strAssID;
                txtCardID.Text      = ass1.strCardID;
                txtAssName.Text     = ass1.strAssName;
                txtSpell.Text       = ass1.strSpell;
                txtAssNbr.Text      = ass1.strAssNbr;
                txtAssType.Text     = ass1.strAssType;
                txtLinkPhone.Text   = ass1.strLinkPhone;
                txtEmail.Text       = ass1.strEmail;
                txtLinkAddress.Text = ass1.strLinkAddress;
                txtComments.Text    = ass1.strComments;
                Session["asold"]    = ass1;
            }
        }
Ejemplo n.º 2
0
        private void Page_Load(object sender, System.EventArgs e)
        {
            // 在此处放置用户代码以初始化页面
            if (Session["Login"] == null)
            {
                Response.Redirect("../Exit.aspx");
                return;
            }
            string    strAssid  = Request.QueryString["aid"];
            string    strCardid = Request.QueryString["cid"];
            Hashtable htapp     = (Hashtable)Application["appconf"];
            string    strcons   = (string)htapp["cons"];

            busi = new BusiComm.BusiQuery(strcons);

            CMSMStruct.LoginStruct ls1 = (CMSMStruct.LoginStruct)Session["Login"];
            if (!IsPostBack)
            {
                Session.Remove("asold");
                Session.Remove("asnew");
                CMSMStruct.AssociatorStruct ass1 = busi.GetAssDetailInfo(strAssid, strCardid);
                txtAssID.Text   = ass1.strAssID;
                txtCardID.Text  = ass1.strCardID;
                txtAssName.Text = ass1.strAssName;
                txtSpell.Text   = ass1.strSpell;
                txtAssNbr.Text  = ass1.strAssNbr;
                if (ass1.strAssTypeDisp == "X" || ass1.strAssTypeDisp == "x")
                {
                    this.FillDropDownList("AssAT", this.ddlAssType, "vcCommSign='AT'");
                    this.ddlAssType.Enabled = false;
                }
                else
                {
                    this.FillDropDownList("AT1", this.ddlAssType);
                    this.ddlAssType.Enabled = true;
                }
                ddlAssType.SelectedIndex = ddlAssType.Items.IndexOf(ddlAssType.Items.FindByValue(ass1.strAssType));
                txtLinkPhone.Text        = ass1.strLinkPhone;
                txtEmail.Text            = ass1.strEmail;
                txtLinkAddress.Text      = ass1.strLinkAddress;
                txtComments.Text         = ass1.strComments;
                Session["asold"]         = ass1;
            }
        }