コード例 #1
0
        public void Save()
        {
            HRM_SALARY_DEBIT hRMSALARYDEBIT = new HRM_SALARY_DEBIT();

            hRMSALARYDEBIT.Delete(this.m_SalaryTableListID, this.m_EmployeeCode);
            try
            {
                foreach (DataRow row in (this.gcList.DataSource as DataTable).Rows)
                {
                    try
                    {
                        if (row != null)
                        {
                            hRMSALARYDEBIT.Insert(this.m_SalaryTableListID, this.m_EmployeeCode, Guid.NewGuid(), row["Reason"].ToString(), DateTime.Parse(row["Date"].ToString()), decimal.Parse(row["Money"].ToString()), row["Person"].ToString(), row["Description"].ToString());
                        }
                    }
                    catch
                    {
                        continue;
                    }
                }
                this.RaiseSavedHander();
            }
            catch
            {
            }
        }
コード例 #2
0
        public void Init(Guid SalaryTableListID, string EmployeeCode)
        {
            this.m_Money = new decimal(0);
            this.barManager1.SetPopupContextMenu(this.gcList, this.ppMenu);
            this.repMoney.EditValueChanging += new ChangingEventHandler(this.repMoney_EditValueChanging);
            HRM_SALARY_DEBIT hRMSALARYDEBIT    = new HRM_SALARY_DEBIT();
            Guid             salaryTableListID = SalaryTableListID;
            Guid             guid = salaryTableListID;

            this.m_SalaryTableListID = salaryTableListID;
            string employeeCode = EmployeeCode;
            string str          = employeeCode;

            this.m_EmployeeCode    = employeeCode;
            this.gcList.DataSource = hRMSALARYDEBIT.GetList(guid, str);
        }