예제 #1
0
 private void Init()
 {
     SYS_LOG.Insert("Danh Mục Trường Học", "Xem");
     this.ucList.CloseClick += new ButtonClickEventHander(this.ucList_CloseClick);
     this.ucList.Added      += new xucSchool.AddedEventHander(this.ucList_Added);
     this.ucList.Updated    += new xucSchool.UpdatedEventHander(this.ucList_Updated);
     this.ucList.Deleted    += new DeletedEventHander(this.ucList_Deleted);
     this.Text = "Trường đào tạo";
 }
예제 #2
0
 private void Init()
 {
     SYS_LOG.Insert("Danh Mục Ca Làm Việc", "Xem");
     this.ucList.CloseClick += new ButtonClickEventHander(this.ucList_CloseClick);
     this.ucList.Added      += new xucShift.AddedEventHander(this.ucList_Added);
     this.ucList.Updated    += new xucShift.UpdatedEventHander(this.ucList_Updated);
     this.ucList.Deleted    += new DeletedEventHander(this.ucList_Deleted);
     this.Text = "Ca làm việc";
 }
예제 #3
0
 private void Init()
 {
     SYS_LOG.Insert("Danh Sách Phòng Ban", "Xem");
     this.xucdepartment = new xucDepartment();
     base.Controls.Add(this.xucdepartment);
     this.xucdepartment.Dock        = DockStyle.Fill;
     this.xucdepartment.CloseClick += new ButtonClickEventHander(this.xucdepartment_CloseClick);
     this.Text = "Phòng ban";
 }
예제 #4
0
 private void Init()
 {
     SYS_LOG.Insert("Danh Sách Thiết Bị", "Xem");
     this.ucList.CloseClick += new ButtonClickEventHander(this.ucList_CloseClick);
     this.ucList.Added      += new xucMachine.AddedEventHander(this.ucList_Added);
     this.ucList.Updated    += new xucMachine.UpdatedEventHander(this.ucList_Updated);
     this.ucList.Deleted    += new xucMachine.DeletedEventHandler(this.ucList_Deleted);
     this.Text = "Máy chấm công";
 }
예제 #5
0
 public void SetData(DIC_HOLIDAY item)
 {
     this.m_HolidayID = item.HolidayID;
     SYS_LOG.Insert("Danh Mục Ngày Nghỉ", "Xem", this.m_HolidayID.ToString());
     this.txtName.Text        = item.HolidayName;
     this.dtFromDate.DateTime = item.FromDate;
     this.dtToDate.DateTime   = item.ToDate;
     this.txtDescription.Text = item.Description;
 }
예제 #6
0
 private void Init()
 {
     SYS_LOG.Insert("Danh Mục Bậc Lương", "Xem");
     this.xucstep = new xucStep();
     base.Controls.Add(this.xucstep);
     this.xucstep.Dock        = DockStyle.Fill;
     this.xucstep.CloseClick += new ButtonClickEventHander(this.xucstep_CloseClick);
     this.Text = this.Text;
 }
예제 #7
0
        protected override void Delete()
        {
            string str;
            object rowCellValue;

            if (MyRule.IsDelete("bbiProcessAssignment"))
            {
                bool  flag         = false;
                int[] selectedRows = this.gbList.GetSelectedRows();
                if (XtraMessageBox.Show("Bạn có muốn xóa không?", "Thông báo", MessageBoxButtons.YesNo, MessageBoxIcon.Question) != DialogResult.No)
                {
                    base.SetWaitDialogCaption("Đang xóa...");
                    HRM_PROCESS_ASSIGNMENT hRMPROCESSASSIGNMENT = new HRM_PROCESS_ASSIGNMENT();
                    for (int i = (int)selectedRows.Length; i > 0; i--)
                    {
                        flag         = true;
                        rowCellValue = this.gbList.GetRowCellValue(selectedRows[i - 1], "AssignmentID");
                        if (rowCellValue != null)
                        {
                            SYS_LOG.Insert("Đi Công Tác", "Xoá", rowCellValue.ToString());
                            str = hRMPROCESSASSIGNMENT.Delete(new Guid(rowCellValue.ToString()));
                            if (str == "OK")
                            {
                                this.gbList.DeleteRow(selectedRows[i - 1]);
                            }
                            else if (str != "OK")
                            {
                                MessageBox.Show(string.Concat("Thông tin không được xóa", str), "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Hand);
                            }
                        }
                    }
                    this.DoHide();
                    if (!flag)
                    {
                        rowCellValue = this.gbList.GetFocusedRowCellValue("AssignmentID");
                        if (rowCellValue != null)
                        {
                            SYS_LOG.Insert("Đi Công Tác", "Xoá", rowCellValue.ToString());
                            base.SetWaitDialogCaption("Đang xóa...");
                            str = hRMPROCESSASSIGNMENT.Delete(new Guid(rowCellValue.ToString()));
                            if (str == "OK")
                            {
                                this.gbList.DeleteRow(this.gbList.FocusedRowHandle);
                            }
                            else if (str != "OK")
                            {
                                MessageBox.Show(string.Concat("Thông tin không được xóa\r\n", str), "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Hand);
                            }
                            this.DoHide();
                        }
                    }
                }
            }
        }
예제 #8
0
 protected override void Print()
 {
     if (!(MyRule.Get(MyLogin.RoleId, "bbiDegree") != "OK"))
     {
         if (MyRule.AllowPrint)
         {
             SYS_LOG.Insert("Danh Mục Bằng Cấp", "In");
             base.Print();
         }
         else
         {
             MyRule.Notify();
         }
     }
 }
예제 #9
0
        protected override bool ExportPermision()
        {
            bool flag;

            if (MyRule.IsExport("bbiRank"))
            {
                SYS_LOG.Insert("Danh Mục Ngạch Lương", "Xuất");
                flag = base.ExportPermision();
            }
            else
            {
                flag = false;
            }
            return(flag);
        }
예제 #10
0
 protected override void Print()
 {
     if (!(MyRule.Get(MyLogin.RoleId, "bbiRank") != "OK"))
     {
         if (MyRule.AllowPrint)
         {
             SYS_LOG.Insert("Danh Mục Ngạch Lương", "In");
             base.Print();
         }
         else
         {
             MyRule.Notify();
         }
     }
 }
예제 #11
0
        protected override bool ExportPermision()
        {
            bool flag;

            this._exportView = this.gbList;
            if (MyRule.IsExport("bbiStep"))
            {
                SYS_LOG.Insert("Danh Mục Bậc Lương", "Xuất");
                flag = base.ExportPermision();
            }
            else
            {
                flag = false;
            }
            return(flag);
        }
예제 #12
0
        protected override string uc_Update()
        {
            SYS_LOG.Insert("Danh Mục Ngày Nghỉ", "Cập Nhật", this.m_HolidayID.ToString());
            base.SetWaitDialogCaption("Đang cập nhật dữ liệu...");
            DIC_HOLIDAY dICHOLIDAY = new DIC_HOLIDAY(this.m_HolidayID, this.txtName.Text, this.dtFromDate.DateTime, this.dtToDate.DateTime, this.txtDescription.Text);
            string      str        = dICHOLIDAY.Update();

            if (str == "OK")
            {
                this.RaiseSuccessEventHander(dICHOLIDAY);
            }
            if (str != "OK")
            {
                XtraMessageBox.Show(str, "Cảnh Báo", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
            }
            this.DoHide();
            return(str);
        }
예제 #13
0
        protected override bool ExportPermision()
        {
            bool flag;

            if (MyRule.Get(MyLogin.RoleId, "bbiDegree") != "OK")
            {
                flag = false;
            }
            else if (MyRule.AllowExport)
            {
                SYS_LOG.Insert("Danh Mục Bằng Cấp", "Xuất");
                flag = base.ExportPermision();
            }
            else
            {
                MyRule.Notify();
                flag = false;
            }
            return(flag);
        }
예제 #14
0
        protected override string uc_Save()
        {
            SYS_LOG.Insert("Danh Mục Ngày Nghỉ", "Thêm", this.m_HolidayID.ToString());
            base.SetWaitDialogCaption("Đang lưu dữ liệu...");
            Cursor.Current   = Cursors.WaitCursor;
            this.m_HolidayID = Guid.NewGuid();
            DIC_HOLIDAY dICHOLIDAY = new DIC_HOLIDAY(this.m_HolidayID, this.txtName.Text, this.dtFromDate.DateTime, this.dtToDate.DateTime, this.txtDescription.Text);
            string      str        = dICHOLIDAY.Insert();

            if (str == "OK")
            {
                this.RaiseSuccessEventHander(dICHOLIDAY);
            }
            Cursor.Current = Cursors.Default;
            this.DoHide();
            if (str != "OK")
            {
                XtraMessageBox.Show(str, "Cảnh Báo", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
            }
            return(str);
        }
예제 #15
0
 private void Init()
 {
     SYS_LOG.Insert("Danh Mục Bằng Cấp", "Xem");
     this.ucList.CloseClick += new ButtonClickEventHander(this.ucList_CloseClick);
     this.Text = "Bằng cấp";
 }
예제 #16
0
 private void Init()
 {
     SYS_LOG.Insert("Danh Mục Công Việc", "Xem");
     this.ucList.CloseClick += new ButtonClickEventHander(this.ucList_CloseClick);
     this.Text = "Nhóm tiêu chí";
 }
예제 #17
0
 public void bbiExport()
 {
     this._exportView = this.gbList;
     SYS_LOG.Insert("Danh Sách Phụ Cấp", "Xuất");
     base.Export();
 }
예제 #18
0
 private void Init()
 {
     SYS_LOG.Insert("Danh Mục Mối Quan Hệ Gia Đình", "Xem");
     this.ucList.CloseClick += new ButtonClickEventHander(this.ucList_CloseClick);
     this.Text = "Quan hệ gia đình";
 }
예제 #19
0
 private void Init()
 {
     SYS_LOG.Insert("Danh Sách Công Ty Con", "Xem");
     this.ucList.CloseClick += new ButtonClickEventHander(this.ucList_CloseClick);
     this.Text = "....";
 }
예제 #20
0
 private void Init()
 {
     SYS_LOG.Insert("Danh Mục Tin Học", "Xem");
     this.ucList.CloseClick += new ButtonClickEventHander(this.ucList_CloseClick);
     this.Text = "Tin học";
 }
예제 #21
0
        public override void Delete()
        {
            object cellValue;

            if (!(MyRule.Get(MyLogin.RoleId, "bbiDegree") != "OK"))
            {
                if (MyRule.AllowDelete)
                {
                    if (ClsOption.System2.IsQuestion)
                    {
                        if (XtraMessageBox.Show("Bạn có muốn xóa không?", "Thông báo", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No)
                        {
                            return;
                        }
                    }
                    base.SetWaitDialogCaption("Đang xóa...");
                    string            str  = "";
                    bool              flag = false;
                    AdvBandedGridView advBandedGridView = this.gbList;
                    int[]             selectedRows      = advBandedGridView.GetSelectedRows();
                    DIC_DEGREE        dICDEGREE         = new DIC_DEGREE();
                    for (int i = (int)selectedRows.Length; i > 0; i--)
                    {
                        flag      = true;
                        cellValue = base.GetCellValue(selectedRows[i - 1], "DegreeCode");
                        if (cellValue != null)
                        {
                            SYS_LOG.Insert("Danh Mục Bằng Cấp", "Xoá", cellValue.ToString());
                            str = dICDEGREE.Delete(cellValue.ToString());
                            if (str == "OK")
                            {
                                advBandedGridView.DeleteRow(selectedRows[i - 1]);
                            }
                            else if (str != "OK")
                            {
                                MessageBox.Show(string.Concat("Thông tin không được xóa\n", str), "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Hand);
                            }
                        }
                    }
                    this.DoHide();
                    if (!flag)
                    {
                        if (advBandedGridView.DataSource != null)
                        {
                            RowClickEventArgs rowClickEventArg = new RowClickEventArgs((advBandedGridView == null ? -1 : advBandedGridView.FocusedRowHandle), (advBandedGridView.FocusedColumn == null ? -1 : advBandedGridView.FocusedColumn.ColumnHandle), (advBandedGridView.FocusedColumn == null ? "" : advBandedGridView.FocusedColumn.FieldName));
                            this.m_RowClickEventArgs = rowClickEventArg;
                            cellValue = null;
                            cellValue = base.GetCellValue(rowClickEventArg.RowIndex, "DegreeCode");
                            if (cellValue != null)
                            {
                                SYS_LOG.Insert("Danh Mục Bằng Cấp", "Xoá", cellValue.ToString());
                                base.SetWaitDialogCaption("Đang xóa...");
                                str = dICDEGREE.Delete(cellValue.ToString());
                                if (str == "OK")
                                {
                                    advBandedGridView.DeleteRow(rowClickEventArg.RowIndex);
                                }
                                else if (str != "OK")
                                {
                                    MessageBox.Show(string.Concat("Thông tin không được xóa\n", str), "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Hand);
                                }
                                this.DoHide();
                            }
                        }
                    }
                }
                else
                {
                    MyRule.Notify();
                }
            }
        }
예제 #22
0
        protected override void Delete()
        {
            string str;
            object rowCellValue;
            object focusedRowCellValue;

            if (MyRule.IsDelete("bbiSalary"))
            {
                bool  flag         = false;
                int[] selectedRows = this.gbList.GetSelectedRows();
                if (XtraMessageBox.Show("Bạn có muốn xóa không?", "Thông báo", MessageBoxButtons.YesNo, MessageBoxIcon.Question) != DialogResult.No)
                {
                    base.SetWaitDialogCaption("Đang xóa...");
                    HRM_SALARY_ALLOWANCE hRMSALARYALLOWANCE = new HRM_SALARY_ALLOWANCE();
                    for (int i = (int)selectedRows.Length; i > 0; i--)
                    {
                        flag                = true;
                        rowCellValue        = this.gbList.GetRowCellValue(selectedRows[i - 1], "EmployeeCode");
                        focusedRowCellValue = this.gbList.GetRowCellValue(selectedRows[i - 1], "AllowanceCode");
                        if ((rowCellValue == null ? false : focusedRowCellValue != null))
                        {
                            SYS_LOG.Insert("Phụ Cấp Lương", "Xoá", focusedRowCellValue.ToString());
                            str = hRMSALARYALLOWANCE.Delete(this.m_SalaryTableListID, rowCellValue.ToString(), focusedRowCellValue.ToString());
                            if (str == "OK")
                            {
                                this.gbList.DeleteRow(selectedRows[i - 1]);
                            }
                            else if (str != "OK")
                            {
                                MessageBox.Show(string.Concat("Thông tin không được xóa", str), "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Hand);
                            }
                        }
                    }
                    this.DoHide();
                    if (!flag)
                    {
                        if (hRMSALARYALLOWANCE.GetList(this.m_Level, this.m_Code, this.m_SalaryTableListID).Rows.Count != 0)
                        {
                            rowCellValue        = this.gbList.GetFocusedRowCellValue("EmployeeCode");
                            focusedRowCellValue = this.gbList.GetFocusedRowCellValue("AllowanceCode");
                            if ((rowCellValue == null ? false : focusedRowCellValue != null))
                            {
                                SYS_LOG.Insert("Phụ Cấp Lương", "Xoá", focusedRowCellValue.ToString());
                                base.SetWaitDialogCaption("Đang xóa...");
                                str = hRMSALARYALLOWANCE.Delete(this.m_SalaryTableListID, rowCellValue.ToString(), focusedRowCellValue.ToString());
                                if (str == "OK")
                                {
                                    this.gbList.DeleteRow(this.gbList.FocusedRowHandle);
                                }
                                else if (str != "OK")
                                {
                                    MessageBox.Show(string.Concat("Thông tin không được xóa\r\n", str), "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Hand);
                                }
                                this.DoHide();
                            }
                        }
                    }
                }
            }
            else
            {
                MyRule.Notify();
            }
        }