示例#1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            Rid.Value = string.IsNullOrEmpty(Request["id"]) ? "" : Request["id"];

            if (!string.IsNullOrEmpty(Rid.Value))
            {
                Maticsoft.BLL.customer   bll   = new Maticsoft.BLL.customer();
                Maticsoft.Model.customer model = bll.GetModel(Convert.ToInt32(Rid.Value));


                agent.Text        = model.agent;
                agenttel.Text     = model.agenttel;
                createdate.Text   = (model.createdate).ToString();
                customername.Text = model.customername;
                flag.Text         = model.flag;
                intention.Text    = model.intention;
                level.Text        = model.level;
                source.Text       = model.source;
                tel.Text          = model.tel;
                zygw.Text         = model.zygw;
            }
        }
    }