private void frmCategory_Load(object sender, EventArgs e) { config.sqlselect = "SELECT c.CategoryId,Category,CategoryType,Unit FROM tblcategory c,tblautonumber a WHERE c.CategoryId=a.CategoryId"; config.LoadData(config.sqlselect, dtglist); txtcategory.Clear(); txtUnit.Clear(); txtType.Clear(); categoryid = 0; dtglist.Columns[0].Visible = false; config.FillAutonumber(4, lblCategoryId); }
private void frmStockout_Load(object sender, EventArgs e) { txtBarcode.MaxLength = 11; txtBarcode.Focus(); pro.FillAutonumber(11, lblTransactionId); txtChange.Visible = false; txtAmountTender.Visible = false; lblamountTender.Visible = false; lblchange.Visible = false; txtTotalAmount.Size = new Size(150, 76); timer1.Start(); pro.ResponsiveDtg(dtgList); }
private void btnNew_Click(object sender, EventArgs e) { useFunc.clearTxt(this); cboRole.Text = "Administrator"; user.FillAutonumber(2, lblUserId); user.sqlselect = "Select UserId,Fullname,User_Name as 'Username',UserRole as 'Role' FROM tbluser"; user.LoadData(user.sqlselect, dtgList); }