public void loadWeight() { try { var listDB = truckBO.GetData(u => u.isDelete == false && u.LicencePlate == txtLicencePlate.Text); txtTruckofWeight.Text = listDB.First().Weight.Value.ToString(); } catch { } }
private void loadLicencePlateInput(int MSKH) { var listDB = truckBO.GetData(u => u.isDelete == false && u.MSKH == MSKH); txtLicencePlate.Items.Clear(); foreach (var item in listDB) { txtLicencePlate.Items.Add(item.LicencePlate); } }
public void loadDataDGoftruck() { int MSKH = SplitMSKH(txtMSKHofTruck.Text); var listDB = truckBO.GetData(u => u.isDelete == false && u.MSKH == MSKH); int i = 0; dataDSoftruck.Rows.Clear(); foreach (var item in listDB) { dataDSoftruck.Rows.Add(); dataDSoftruck.Rows[i].Cells[0].Value = i; dataDSoftruck.Rows[i].Cells[1].Value = item.LicencePlate; dataDSoftruck.Rows[i].Cells[2].Value = item.Weight; dataDSoftruck.Rows[i].Cells[3].Value = item.MSKH; i++; } }