private void FillTable() { int count = 0; AutoCodeItems.Refresh(); AutoCodeConds.Refresh(); AutoCodeItems.GetListForCode(AutoCodeCur.AutoCodeNum); tbAutoItem.ResetRows(AutoCodeItems.ListForCode.Length); tbAutoItem.SetGridColor(Color.Gray); tbAutoItem.SetBackGColor(Color.White); for (int i = 0; i < AutoCodeItems.ListForCode.Length; i++) { tbAutoItem.Cell[0, i] = ProcedureCodes.GetProcCode(AutoCodeItems.ListForCode[i].CodeNum).ProcCode; tbAutoItem.Cell[1, i] = ProcedureCodes.GetProcCode(AutoCodeItems.ListForCode[i].CodeNum).Descript; count = 0; for (int j = 0; j < AutoCodeConds.List.Length; j++) { if (AutoCodeConds.List[j].AutoCodeItemNum == AutoCodeItems.ListForCode[i].AutoCodeItemNum) { if (count != 0) { tbAutoItem.Cell[2, i] += ", "; } tbAutoItem.Cell[2, i] += AutoCodeConds.List[j].Cond.ToString(); count++; } } } tbAutoItem.LayoutTables(); }
private void FormAutoItemEdit_Load(object sender, System.EventArgs e) { AutoCodeConds.Refresh(); if (IsNew) { this.Text = Lan.g(this, "Add Auto Code Item"); } else { this.Text = Lan.g(this, "Edit Auto Code Item"); textADA.Text = ProcedureCodes.GetStringProcCode(AutoCodeItemCur.CodeNum); } FillList(); }
private void FormAutoItemEdit_Load(object sender, System.EventArgs e) { AutoCodeConds.Refresh(); if (IsNew) { this.Text = Lan.g(this, "Add Auto Code Item"); } else { this.Text = Lan.g(this, "Edit Auto Code Item"); textADA.Text = AutoCodeItemCur.ADACode; } FillList(); }