Esempio n. 1
0
 private void FillGrid()
 {
     Operatories.Refresh();
     gridMain.BeginUpdate();
     gridMain.Rows.Clear();
     UI.ODGridRow row;
     for (int i = 0; i < Operatories.List.Length; i++)
     {
         row = new OpenDental.UI.ODGridRow();
         row.Cells.Add(Operatories.List[i].OpName);
         row.Cells.Add(Operatories.List[i].Abbrev);
         if (Operatories.List[i].IsHidden)
         {
             row.Cells.Add("X");
         }
         else
         {
             row.Cells.Add("");
         }
         row.Cells.Add(Clinics.GetDesc(Operatories.List[i].ClinicNum));
         row.Cells.Add(Providers.GetAbbr(Operatories.List[i].ProvDentist));
         row.Cells.Add(Providers.GetAbbr(Operatories.List[i].ProvHygienist));
         if (Operatories.List[i].IsHygiene)
         {
             row.Cells.Add("X");
         }
         else
         {
             row.Cells.Add("");
         }
         gridMain.Rows.Add(row);
     }
     gridMain.EndUpdate();
 }
        private void FillGrid()
        {
            Operatories.Refresh();
            gridMain.BeginUpdate();
            gridMain.Columns.Clear();
            ODGridColumn col = new ODGridColumn(Lan.g("TableOperatories", "Op Name"), 150);

            gridMain.Columns.Add(col);
            col = new ODGridColumn(Lan.g("TableOperatories", "Abbrev"), 70);
            gridMain.Columns.Add(col);
            col = new ODGridColumn(Lan.g("TableOperatories", "IsHidden"), 64, HorizontalAlignment.Center);
            gridMain.Columns.Add(col);
            col = new ODGridColumn(Lan.g("TableOperatories", "Clinic"), 80);
            gridMain.Columns.Add(col);
            col = new ODGridColumn(Lan.g("TableOperatories", "Dentist"), 70);
            gridMain.Columns.Add(col);
            col = new ODGridColumn(Lan.g("TableOperatories", "Hygienist"), 70);
            gridMain.Columns.Add(col);
            col = new ODGridColumn(Lan.g("TableOperatories", "IsHygiene"), 72, HorizontalAlignment.Center);
            gridMain.Columns.Add(col);
            gridMain.Rows.Clear();
            UI.ODGridRow row;
            for (int i = 0; i < Operatories.List.Length; i++)
            {
                row = new OpenDental.UI.ODGridRow();
                row.Cells.Add(Operatories.List[i].OpName);
                row.Cells.Add(Operatories.List[i].Abbrev);
                if (Operatories.List[i].IsHidden)
                {
                    row.Cells.Add("X");
                }
                else
                {
                    row.Cells.Add("");
                }
                row.Cells.Add(Clinics.GetDesc(Operatories.List[i].ClinicNum));
                row.Cells.Add(Providers.GetAbbr(Operatories.List[i].ProvDentist));
                row.Cells.Add(Providers.GetAbbr(Operatories.List[i].ProvHygienist));
                if (Operatories.List[i].IsHygiene)
                {
                    row.Cells.Add("X");
                }
                else
                {
                    row.Cells.Add("");
                }
                gridMain.Rows.Add(row);
            }
            gridMain.EndUpdate();
        }