Exemplo n.º 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         model = Session["jbyhm"] as NCPEP.Model.T_LiceTran;
         if (null == model)
         {
             Response.Redirect("~/Super/loginuser.aspx", true);
         }
         else
         {
         }
     }
     catch
     {
         model = null;
     }
     if (null == model)
     {
         Response.Redirect("~/Super/loginuser.aspx", true);
     }
     if (!IsPostBack)
     {
         //BindDll();
         BindDate();
     }
 }
Exemplo n.º 2
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            NCPEP.Bll.T_LiceTran   dal   = new NCPEP.Bll.T_LiceTran();
            NCPEP.Model.T_LiceTran model = new NCPEP.Model.T_LiceTran();

            string username  = this.username.Value.Trim();
            string password  = this.password.Value.Trim();
            string randid    = this.randid.Value;
            string CheckCode = Session["CheckCode"] as string;

            if (randid.ToUpper().Equals(CheckCode.ToUpper()))
            {
                model = dal.GetModeluser(username, password);
                if (model != null)
                {
                    Session.Add("jbyhm", model);

                    SysLogBll.Create("竞标登陆页面", "竞标用户登陆成功", model.JBYhm);
                    Response.Redirect("mainuser.aspx");
                    //AddCookie(context, adminUser.Id.ToString());
                }
                else
                {
                    MessageBox.Show(this, "竞标用户不存在或者密码错误,请重新登陆!");
                    return;
                }
            }
            else
            {
                //SysLogBll.Create("登陆页面", "验证码错误", adminUser.AdminName);
                MessageBox.Show(this, "验证码错误请重新输入!");
                return;
            }
        }
Exemplo n.º 3
0
        protected void btnquxiao_Click(object sender, EventArgs e)
        {
            int    i     = 0;
            string sysID = string.Empty;

            foreach (RepeaterItem row in this.rep.Items)
            {
                if (row.ItemType == ListItemType.Item || row.ItemType == ListItemType.AlternatingItem)
                {
                    CheckBox chk  = (CheckBox)row.FindControl("cbx");
                    Label    lbid = (Label)row.FindControl("lbid");
                    if (chk.Checked)
                    {
                        i++;
                        sysID = lbid.Text;
                    }
                }
            }
            if (i == 0)
            {
                MessageBox.Show(this, "请选择需要查看的项!");
            }
            else if (i > 1)
            {
                MessageBox.Show(this, "只能选择一项进行操作");
            }
            else
            {
                NCPEP.Bll.T_XMGG   bll   = new NCPEP.Bll.T_XMGG();
                NCPEP.Model.T_XMGG model = new NCPEP.Model.T_XMGG();
                model = bll.GetModel(int.Parse(sysID));
                if (model != null)
                {
                    model.xmby = "0";


                    if (bll.Update(model))
                    {
                        MessageBox.Show(this, "取消成功!");
                        BindDate();
                    }
                }
            }
        }
Exemplo n.º 4
0
 protected void rep_ItemDataBound(object sender, RepeaterItemEventArgs e)
 {
     if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
     {
         Label lbzzdw  = (Label)e.Item.FindControl("lbzzdw");
         Label lbcrfxm = (Label)e.Item.FindControl("lbcrfxm");
         Label lbjbzt  = (Label)e.Item.FindControl("lbjbzt");
         lbjbzt.Style.Add("color", "red");
         if (lbjbzt.Text == "1")
         {
             lbjbzt.Text = "一次竞标中";
         }
         else if (lbjbzt.Text == "2")
         {
             lbjbzt.Text = "一次竞标完成";
         }
         else if (lbjbzt.Text == "3")
         {
             lbjbzt.Text = "二次竞标中";
         }
         else if (lbjbzt.Text == "4")
         {
             lbjbzt.Text = "二次竞标完成";
         }
         else
         {
             lbjbzt.Text = "未开始竞标";
         }
         NCPEP.Model.T_Organization modelo = new NCPEP.Model.T_Organization();
         NCPEP.Bll.T_Organization   bllo   = new NCPEP.Bll.T_Organization();
         modelo = bllo.GetModel(lbzzdw.Text);
         if (modelo != null)
         {
             lbzzdw.Text = modelo.OrgShortName;
         }
         NCPEP.Model.T_LiceTran modell = new NCPEP.Model.T_LiceTran();
         NCPEP.Bll.T_LiceTran   blll   = new NCPEP.Bll.T_LiceTran();
         modell = blll.GetModel(int.Parse(lbcrfxm.Text));
         if (modell != null)
         {
             lbcrfxm.Text = modell.Name;
         }
     }
 }