public ChangeMark(string BBID, string Mark, bool isVip) { InitializeComponent(); txtMark.Text = Mark; this.BBID = BBID; IsVip = isVip; vipBorrowBLL = new VipBorrowBLL(); vipNoBorrowBLL = new VipNoBorrowBLL(); }
public VipNoBorrowWindow(int id) { InitializeComponent(); vipNoInfo = new VipNoInfo(); vipNoBLL = new VipNoBLL(); vipLevelBLL = new VipLevelBLL(); dpBLL = new DepartBLL(); borrowKindBLL = new BorrowKindBLL(); vipNoInfo.VipId = id; vipNoBorrowBLL = new VipNoBorrowBLL(); }
public VipNoReturnWindow(int id) { InitializeComponent(); vipNoInfo = new VipNoInfo(); vipNoBLL = new VipNoBLL(); //vipLVBLL = new VipLevelBLL(); //dpBLL = new DepartBLL(); vnBorrowBLL = new VipNoBorrowBLL(); vnBorrow = new VipNoBorrow(); borrowKindBLL = new BorrowKindBLL(); bRetBLL = new BikeReturnBLL(); vnBorrow.VipId = id; vipNoInfo.VipId = id; first = true; }
public VipOrNoBorrowSelectWindow(bool isAdmin) { InitializeComponent(); vipBLL = new VipBLL(); vipNoBLL = new VipNoBLL(); vipInfo = new VIPInfo(); vipLVBLL = new VipLevelBLL(); dpBLL = new DepartBLL(); vipBorrowBLL = new VipBorrowBLL(); bikeReturnBLL = new BikeReturnBLL(); vipNoBorrowBLL = new VipNoBorrowBLL(); IsAdmin = isAdmin; IsFirst = true; departList = new List <DepartInfo>(); }
public BorrowReturnWindow(bool isAdmin) { InitializeComponent(); bg.DoWork += new DoWorkEventHandler(bg_DoWork); //异步操作时要做的操作,一般去查列表,这个列表在本页面内先声明,然后在这个dowork方法里去取数填充他 bg.RunWorkerCompleted += new RunWorkerCompletedEventHandler(bg_RunWorkerCompleted); //这个是取数完成后进行的操作,去到数后,这里取用去到的列表绑定到控件 vipBorrowBLL = new VipBorrowBLL(); vipNoBLL = new VipNoBLL(); departBLL = new DepartBLL(); depart = new DepartInfo(); departList = new List <DepartInfo>(); vipBorrow = new VipBorrowInfo(); vipBorrowList = new List <VipBorrowInfo>(); vipNoBorrow = new VipNoBorrow(); vipNoBorrowList = new List <VipNoBorrow>(); vipBLL = new VipBLL(); vipLvBLL = new VipLevelBLL(); vipNoBorrowBLL = new VipNoBorrowBLL(); bikeReturnBLL = new BikeReturnBLL(); IsAdmin = isAdmin; }
private void MainForm_Load(object sender, EventArgs e) { depart = new DepartInfo(); departBLL = new DepartBLL(); lbDpName.Text = StaticData.departLocal.DpName; lbDpAddress.Text = StaticData.departLocal.DpPlace; DPId = StaticData.departLocal.DpId; vipBorrowBLL = new VipBorrowBLL(); vipBLL = new VipBLL(); vipNoBorrowBLL = new VipNoBorrowBLL(); rbtnBorrow.Checked = true; ////绑定分店 //departList = departBLL.DepartSelect(); //cmbDepart.DataSource = departList; //cmbDepart.DisplayMember = "DpName"; //cmbDepart.ValueMember = "DPID"; //cmbDepart.SelectedValue = StaticData.departLocal.DpId; // BingDingLV(); lbUserName.Text = "登录用户:" + StaticData.userLocal.UserName; lbUserPhone.Text = "用户电话:" + StaticData.userLocal.UserPhone; DepartInfo departInfo = new DepartInfo(); departInfo.DpId = StaticData.userLocal.DpId; departInfo = new DepartBLL().DepartSelectById(departInfo); lbDPID.Text = "所属分店:" + departInfo.DpName; try { MemoryStream stream = new MemoryStream(StaticData.userLocal.UserPhoto, true); stream.Write(StaticData.userLocal.UserPhoto, 0, StaticData.userLocal.UserPhoto.Length); picUser.Image = new Bitmap(stream); picUser.SizeMode = PictureBoxSizeMode.StretchImage; } catch (Exception ex) { } Thread th = new Thread(new ThreadStart(getVipList)); th.IsBackground = true; th.Start(); }