示例#1
0
 public SupportNoteDialog(SupportStatWindow stat_windows, bool is_break)
     : this()
 {
     this.mode = MODE.ADD;
     this.stat_windows = stat_windows;
     this.IS_BREAK = (is_break ? "Y" : "N");
 }
示例#2
0
 public SupportNoteDialog(SupportStatWindow stat_windows, bool is_break, SupportNote editing_note)
     : this()
 {
     this.mode = MODE.EDIT;
     this.stat_windows = stat_windows;
     this.IS_BREAK = (is_break ? "Y" : "N");
     this.note = editing_note;
 }
示例#3
0
        private SupportNoteComment prepared_comment; // preparing SupportNoteComment object for save

        #endregion Fields

        #region Constructors

        public CommentWindow(SupportStatWindow parent_wind)
        {
            InitializeComponent();

            this.parent_wind = parent_wind;
            this.note_id = ((SupportNote)parent_wind.dgvNote.Rows[parent_wind.dgvNote.CurrentCell.RowIndex].Cells[0].Value).id;

            this.BindingControlEvent();
        }
示例#4
0
 private void supportStatMenuItem_Click(object sender, EventArgs e)
 {
     if (this.supportstat_wind == null)
     {
         LeaveRangeDialog dlg = new LeaveRangeDialog(this);
         dlg.Text = "กำหนดขอบเขตการแสดงข้อมูลการปฏิบัติงาน(Support)";
         if (dlg.ShowDialog() == DialogResult.OK)
         {
             SupportStatWindow wind = new SupportStatWindow(this, dlg.user_from, dlg.user_to, dlg.date_from, dlg.date_to);
             wind.MdiParent = this;
             wind.Show();
         }
     }
     else
     {
         this.supportstat_wind.Activate();
     }
 }