Exemplo n.º 1
0
        public frmNewCVAction(int nEmployeeID, int nCaseID)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            //
            // TODO: Add any constructor code after InitializeComponent call
            //
            this.nCaseID = nCaseID;
            this.nEmployeeID = nEmployeeID;
            myCV = new ACMSLogic.Staff.CV();
            myCVActionDataSet = myCV.LoadNewCVAction();
            myCVCaseDataSet = myCV.LoadCV(nCaseID);
            BindData();
            TblCaseMode mode = new TblCaseMode();
            DataTable modeTable = mode.SelectAll();
            new XtraUtils.LookupEditBuilder.CaseModeLookupEditBuilder(modeTable, lkpEdtMode.Properties);

            new XtraUtils.LookupEditBuilder.CVStatusLookupEditBuilder(lkpEdtStatus.Properties);
        }
Exemplo n.º 2
0
        public frmNewCVAction(int nEmployeeID, int nCaseID)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            //
            // TODO: Add any constructor code after InitializeComponent call
            //
            this.nCaseID      = nCaseID;
            this.nEmployeeID  = nEmployeeID;
            myCV              = new ACMSLogic.Staff.CV();
            myCVActionDataSet = myCV.LoadNewCVAction();
            myCVCaseDataSet   = myCV.LoadCV(nCaseID);
            BindData();
            TblCaseMode mode      = new TblCaseMode();
            DataTable   modeTable = mode.SelectAll();

            new XtraUtils.LookupEditBuilder.CaseModeLookupEditBuilder(modeTable, lkpEdtMode.Properties);

            new XtraUtils.LookupEditBuilder.CVStatusLookupEditBuilder(lkpEdtStatus.Properties);
        }
Exemplo n.º 3
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="nEmployeeID"></param>
        /// <param name="nCaseID">-1 is for New CV</param>
        public frmNewCV(int nEmployeeID, int nCaseID, string terminalBranchID)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            //
            // TODO: Add any constructor code after InitializeComponent call
            //
            ACMS.XtraUtils.XtraEditors.SetDateEditFormat(this.Controls);
            this.nEmployeeID          = nEmployeeID;
            this.nCaseID              = nCaseID;
            myCV                      = new ACMSLogic.Staff.CV();
            ucMemberID1.StrBranchCode = terminalBranchID;

            if (nCaseID == -1)
            {
                myCV.LoadNewCV(terminalBranchID);
                myDataSet = myCV.NewCVDataSet;
            }
            else
            {
                this.Text                = "Edit CV";
                myDataSet                = myCV.LoadCV(nCaseID);
                txtSubject.Enabled       = false;
                dateEdit1.Enabled        = false;
                lkpEdtBranchCode.Enabled = false;
                lkpEdtDeptID.Enabled     = false;
                ucMemberID1.Enabled      = false;
                //lkpEdtMemberID.Enabled = false;
                //mmEdtDetail.Enabled = false;
            }

            Init();
        }
Exemplo n.º 4
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="nEmployeeID"></param>
        /// <param name="nCaseID">-1 is for New CV</param>
        public frmNewCV(int nEmployeeID, int nCaseID, string terminalBranchID)
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            //
            // TODO: Add any constructor code after InitializeComponent call
            //
            ACMS.XtraUtils.XtraEditors.SetDateEditFormat(this.Controls);
            this.nEmployeeID = nEmployeeID;
            this.nCaseID = nCaseID;
            myCV = new ACMSLogic.Staff.CV();
            ucMemberID1.StrBranchCode = terminalBranchID;

            if (nCaseID == -1)
            {
                myCV.LoadNewCV(terminalBranchID);
                myDataSet = myCV.NewCVDataSet;
            }
            else
            {
                this.Text = "Edit CV";
                myDataSet = myCV.LoadCV(nCaseID);
                txtSubject.Enabled = false;
                dateEdit1.Enabled = false;
                lkpEdtBranchCode.Enabled = false;
                lkpEdtDeptID.Enabled = false;
                ucMemberID1.Enabled = false;
                //lkpEdtMemberID.Enabled = false;
                //mmEdtDetail.Enabled = false;
            }

            Init();
        }