Example #1
0
 private void InitializeAttachmentInfoControl()
 {
     _ctrlSalesLeadAttachment = new ctrlAttachments(APP_ENTITIES.SALES_LEAD);
     _ctrlSalesLeadAttachment.CONTROL_ORIENTATION = Orientation.Vertical;
     tabPageAttachement.Controls.Add(_ctrlSalesLeadAttachment);
     _ctrlSalesLeadAttachment.Dock = DockStyle.Fill;
 }
Example #2
0
 private void InitializeAttachmentInfoControl()
 {
     _ctrlSalesQuotationReviewAttachment = new ctrlAttachments(APP_ENTITIES.SALES_QUOTATION_REVIEW_SELECT_QUOTATION);
     _ctrlSalesQuotationReviewAttachment.CONTROL_ORIENTATION = Orientation.Vertical;
     tabPageAttachments.Controls.Add(_ctrlSalesQuotationReviewAttachment);
     _ctrlSalesQuotationReviewAttachment.Dock = DockStyle.Fill;
 }
Example #3
0
 private void InitializeItemAttachmentControl()
 {
     ItemAttachmentControl = new ctrlAttachments(APP_ENTITIES.INVENTORY_ITEM);
     tabPageAttachment.Controls.Add(ItemAttachmentControl);
     ItemAttachmentControl.Dock = DockStyle.Fill;
 }
Example #4
0
        private void PageMyPersoanlInfo_Load(object sender, EventArgs e)
        {
            try
            {
                // GENERAL INFO CONTROL
                _controlGeneralInfo = new ControlEmployeeGeneralInfo();
                _controlGeneralInfo.SelectedEmployeeID = Program.CURR_USER.EmployeeID;
                tabPageGeneralInfo.Controls.Add(_controlGeneralInfo);
                _controlGeneralInfo.Dock = DockStyle.Fill;
                _controlGeneralInfo.PopulateEmployeeGeneralAndResignationInfo();
                _controlGeneralInfo.SetReadOnly();

                // PERSONAL INFO CONTROL
                _controlPersonalInfo = new ControlEmployeePersonalInfo();
                _controlPersonalInfo.SelectedEmployeeID = Program.CURR_USER.EmployeeID;
                tabPagePersonalInfo.Controls.Add(_controlPersonalInfo);
                _controlPersonalInfo.Dock = DockStyle.Fill;
                _controlPersonalInfo.PopulateEmployeePersonalAndFamilyInfo();
                _controlPersonalInfo.SetReadOnly();

                // BANK INFO
                _controlBankInfo = new ControlEmployeeBankInfo();
                _controlBankInfo.SelectedEmployeeID = Program.CURR_USER.EmployeeID;
                tabPageBankInfo.Controls.Add(_controlBankInfo);
                _controlBankInfo.Dock = DockStyle.Fill;
                _controlBankInfo.PopulateEmployeeBankInfo();
                _controlBankInfo.SetReadOnly();

                // ATTACHMENT INFO.
                _ctrlAttachment = new ctrlAttachments(APP_ENTITIES.EMPLOYEES);
                _ctrlAttachment.CONTROL_ORIENTATION = Orientation.Vertical;
                tabPageAttachmentInfo.Controls.Add(_ctrlAttachment);
                _ctrlAttachment.Dock             = DockStyle.Fill;
                _ctrlAttachment.SelectedEntityID = Program.CURR_USER.EmployeeID;
                _ctrlAttachment.PopulateDocuments();
                _ctrlAttachment.SetReadOnly();

                // OTHER INFO - ATION AND WORK EXPERIENCE
                _controlOtherInfo = new ControlEmployeeOtherInfo();
                tabPageOtherInfo.Controls.Clear();
                tabPageOtherInfo.Controls.Add(_controlOtherInfo);
                _controlOtherInfo.Dock = DockStyle.Fill;
                _controlOtherInfo.PopulateEmployeeQualificationAndLastEmployerInfo();
                _controlOtherInfo.SetReadOnly();

                // ADDITIONAL INFO
                _controlAdditionalInfo = new ControlEmployeeAdditionalInfo();
                tabPageAdditionalInfo.Controls.Clear();
                tabPageAdditionalInfo.Controls.Add(_controlAdditionalInfo);
                _controlAdditionalInfo.Dock = DockStyle.Fill;
                _controlAdditionalInfo.SelectedEmployeeID = Program.CURR_USER.EmployeeID;
                _controlAdditionalInfo.PopulateAdditonalInfo();
                _controlAdditionalInfo.SetReadOnly();

                // LEAVE INFO
                _ControlLeaveInfo = new ControlEmployeeLeaveConfig();
                tabPageLeaveInfo.Controls.Clear();
                tabPageLeaveInfo.Controls.Add(_ControlLeaveInfo);
                _ControlLeaveInfo.Dock = DockStyle.Fill;
                _ControlLeaveInfo.SelectedEmployeeID = Program.CURR_USER.EmployeeID;
                _ControlLeaveInfo.PopulateEmployeeLeaveConfigurations();
                _ControlLeaveInfo.SetReadOnly();

                //CTC INFO
                _ControlCTCInfo = new ControlEmployeeCTC();
                tabPageCtcInfo.Controls.Clear();
                tabPageCtcInfo.Controls.Add(_ControlCTCInfo);
                _ControlCTCInfo.Dock = DockStyle.Fill;
                _ControlCTCInfo.SelectedEmployeeID = Program.CURR_USER.EmployeeID;
                _ControlCTCInfo.PopulateAllouncesAndDeductionCTCGrid();
                _ControlCTCInfo.SetReadOnly();
            }
            catch (Exception ex)
            {
                string errMessage = ex.Message;
                if (ex.InnerException != null)
                {
                    errMessage += string.Format("\n{0}", ex.InnerException.Message);
                }
                MessageBox.Show(errMessage, "ControlEmployeeAuthorities::PageMyPersoanlInfo_Load", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }