public void Save()
        {
            HRM_SALARY_PAY hRMSALARYPAY = new HRM_SALARY_PAY();

            hRMSALARYPAY.Delete(this.m_SalaryTableListID, this.m_EmployeeCode);
            try
            {
                foreach (DataRow row in (this.gcList.DataSource as DataTable).Rows)
                {
                    try
                    {
                        if (row != null)
                        {
                            hRMSALARYPAY.Insert(this.m_SalaryTableListID, this.m_EmployeeCode, Guid.NewGuid(), int.Parse(row["Order"].ToString()), row["Reason"].ToString(), DateTime.Parse(row["Date"].ToString()), decimal.Parse(row["Money"].ToString()), decimal.Parse(row["PayMoney"].ToString()), decimal.Parse(row["RealMoney"].ToString()), row["Person"].ToString(), row["Description"].ToString());
                        }
                    }
                    catch
                    {
                        continue;
                    }
                }
                this.RaiseSavedHander();
            }
            catch
            {
            }
        }
        public void Init(Guid SalaryTableListID, string EmployeeCode)
        {
            this.m_Money     = new decimal(0);
            this.m_PayMoney  = new decimal(0);
            this.m_RealMoney = new decimal(0);
            this.barManager1.SetPopupContextMenu(this.gcList, this.ppMenu);
            this.repMoney.EditValueChanging    += new ChangingEventHandler(this.repMoney_EditValueChanging);
            this.repMoney.ParseEditValue       += new ConvertEditValueEventHandler(this.repMoney_ParseEditValue);
            this.repPayMoney.EditValueChanging += new ChangingEventHandler(this.repPayMoney_EditValueChanging);
            this.repPayMoney.ParseEditValue    += new ConvertEditValueEventHandler(this.repPayMoney_ParseEditValue);
            HRM_SALARY_PAY hRMSALARYPAY      = new HRM_SALARY_PAY();
            Guid           salaryTableListID = SalaryTableListID;
            Guid           guid = salaryTableListID;

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

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