private void OutGroup_Import()
 {
     for (int i = 2; i < 1000; i++)
     {
         if (ws3.Cells[i, 1].Value != null)
         {
             OutGroup outGroup = new OutGroup();
             outGroup.mGroupNo   = Convert.ToString(ws3.Cells[i, 1].Value);
             outGroup.mGroupName = Convert.ToString(ws3.Cells[i, 2].Value);
             outGroup.mOutput1   = Convert.ToString(ws3.Cells[i, 3].Value);
             outGroup.mOutput2   = Convert.ToString(ws3.Cells[i, 4].Value);
             outGroup.mOutput3   = Convert.ToString(ws3.Cells[i, 5].Value);
             outGroup.mOutput4   = Convert.ToString(ws3.Cells[i, 6].Value);
             outGroup.mOutput5   = Convert.ToString(ws3.Cells[i, 7].Value);
             outGroup.mOutput6   = Convert.ToString(ws3.Cells[i, 8].Value);
             outGroup.mOutput7   = Convert.ToString(ws3.Cells[i, 9].Value);
             outGroup.mOutput8   = Convert.ToString(ws3.Cells[i, 10].Value);
             outGroup.mOutput9   = Convert.ToString(ws3.Cells[i, 11].Value);
             outGroup.mOutput10  = Convert.ToString(ws3.Cells[i, 12].Value);
             outGroup.mOutput11  = Convert.ToString(ws3.Cells[i, 13].Value);
             outGroup.mOutput12  = Convert.ToString(ws3.Cells[i, 14].Value);
             outGroup.mOutput13  = Convert.ToString(ws3.Cells[i, 15].Value);
             outGroup.mOutput14  = Convert.ToString(ws3.Cells[i, 16].Value);
             outGroup.mOutput15  = Convert.ToString(ws3.Cells[i, 17].Value);
             outGroup.mOutput16  = Convert.ToString(ws3.Cells[i, 18].Value);
             Global_Variable.oOutGroup_Table.Add(outGroup);
         }
         else
         {
             break;
         }
     }
 }
Exemplo n.º 2
0
 public void EndEdit()
 {
     if (m_Editing == true)
     {
         temp_Task = null;
         m_Editing = false;
     }
 }
Exemplo n.º 3
0
 // Implement IEditableObject interface.
 public void BeginEdit()
 {
     if (m_Editing == false)
     {
         temp_Task = this.MemberwiseClone() as OutGroup;
         m_Editing = true;
     }
 }