Beispiel #1
0
        /// <summary>
        /// 弹出表单子窗口,以便编辑指定加班申请记录
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void btnEdit_Click(object sender, RoutedEventArgs e)
        {
            if (dgOTList.SelectedItems == null)
            {
                ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "EDIT"), Utility.GetResourceStr("CONFIRMBUTTON"));
                return;
            }

            if (dgOTList.SelectedItems.Count == 0)
            {
                ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "EDIT"), Utility.GetResourceStr("CONFIRMBUTTON"));
                return;
            }

            T_HR_OUTAPPLYRECORD tmpEnt = dgOTList.SelectedItems[0] as T_HR_OUTAPPLYRECORD;

            //修改 如果是已审核的单据 提示不容许修改
            if (tmpEnt.CHECKSTATE != Convert.ToInt32(CheckStates.UnSubmit).ToString())
            {
                //Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("DELETEAUDITERROR"));
                MessageBox.Show("已审核的单据不容许修改.");
                return;
            }

            OutAppliecationForm form = new OutAppliecationForm(FormTypes.Edit, tmpEnt.OUTAPPLYID);

            EntityBrowser entBrowser = new EntityBrowser(form);

            entBrowser.FormType         = FormTypes.Edit;
            entBrowser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
            entBrowser.Show <string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) => { });
        }
 public string AddOutApply(T_HR_OUTAPPLYRECORD entOTRd)
 {
     using (OutApplyBLL bllOverTimeRecord = new OutApplyBLL())
     {
         if (entOTRd.STARTDATE <= DateTime.Now)
         {
             string str = "外出申请的开始时间:必须大于当前时间";
             Tracer.Debug(str);
             return str;
         }
         return bllOverTimeRecord.AddOutApply(entOTRd);
     }
 }
Beispiel #3
0
 public string AddOutApply(T_HR_OUTAPPLYRECORD entOTRd)
 {
     using (OutApplyBLL bllOverTimeRecord = new OutApplyBLL())
     {
         if (entOTRd.STARTDATE <= DateTime.Now)
         {
             string str = "外出申请的开始时间:必须大于当前时间";
             Tracer.Debug(str);
             return(str);
         }
         return(bllOverTimeRecord.AddOutApply(entOTRd));
     }
 }
Beispiel #4
0
        private string GetXmlString(string StrSource, T_HR_OUTAPPLYRECORD Info)
        {
            //SMT.Saas.Tools.PermissionWS.T_SYS_DICTIONARY LEFTOFFICECATEGORY = cbxEmployeeType.SelectedItem as SMT.Saas.Tools.PermissionWS.T_SYS_DICTIONARY;
            decimal?stateValue = Convert.ToDecimal("1");
            string  checkState = string.Empty;

            SMT.Saas.Tools.PermissionWS.T_SYS_DICTIONARY checkStateDict = (Application.Current.Resources["SYS_DICTIONARY"] as List <SMT.Saas.Tools.PermissionWS.T_SYS_DICTIONARY>).Where(s => s.DICTIONCATEGORY == "CHECKSTATE" && s.DICTIONARYVALUE == stateValue).FirstOrDefault();
            checkState = checkStateDict == null ? "" : checkStateDict.DICTIONARYNAME;


            decimal?postlevelValue = Convert.ToDecimal(tbEmpLevel.Text.Trim());
            string  postLevelName  = string.Empty;

            SMT.Saas.Tools.PermissionWS.T_SYS_DICTIONARY postLevelDict = (Application.Current.Resources["SYS_DICTIONARY"] as List <SMT.Saas.Tools.PermissionWS.T_SYS_DICTIONARY>).Where(s => s.DICTIONCATEGORY == "POSTLEVEL" && s.DICTIONARYVALUE == postlevelValue).FirstOrDefault();
            postLevelName = postLevelDict == null ? "" : postLevelDict.DICTIONARYNAME;

            //decimal? payCatogryValue = Convert.ToDecimal(Info.PAYCATEGORY);
            //SMT.Saas.Tools.PermissionWS.T_SYS_DICTIONARY PayCatogryDict = (Application.Current.Resources["SYS_DICTIONARY"] as List<SMT.Saas.Tools.PermissionWS.T_SYS_DICTIONARY>).Where(s => s.DICTIONCATEGORY == "PAYCATEGORY" && s.DICTIONARYVALUE == payCatogryValue).FirstOrDefault();

            decimal?overTimeValue = Convert.ToDecimal(Info.OVERTIMECATE);

            SMT.Saas.Tools.PermissionWS.T_SYS_DICTIONARY overTimeDict = (Application.Current.Resources["SYS_DICTIONARY"] as List <SMT.Saas.Tools.PermissionWS.T_SYS_DICTIONARY>).Where(s => s.DICTIONCATEGORY == "OVERTIMECATE" && s.DICTIONARYVALUE == overTimeValue).FirstOrDefault();

            SMT.SaaS.MobileXml.MobileXml             mx       = new SMT.SaaS.MobileXml.MobileXml();
            List <SMT.SaaS.MobileXml.AutoDictionary> AutoList = new List <SMT.SaaS.MobileXml.AutoDictionary>();

            AutoList.Add(basedata("T_HR_OUTAPPLYRECORD", "CURRENTEMPLOYEENAME", Common.CurrentLoginUserInfo.EmployeeName, Common.CurrentLoginUserInfo.EmployeeName));
            AutoList.Add(basedata("T_HR_OUTAPPLYRECORD", "CHECKSTATE", "1", checkState));
            AutoList.Add(basedata("T_HR_OUTAPPLYRECORD", "OWNERPOSTNAME", tbOrgName.Text.Trim(), tbOrgName.Text.Trim()));
            AutoList.Add(basedata("T_HR_OUTAPPLYRECORD", "POSTLEVEL", tbEmpLevel.Text.Trim(), postLevelName));
            AutoList.Add(basedata("T_HR_OUTAPPLYRECORD", "EMPLOYEENAME", Info.EMPLOYEENAME, Info.EMPLOYEENAME));
            AutoList.Add(basedata("T_HR_OUTAPPLYRECORD", "OWNERCOMPANYID", Info.OWNERCOMPANYID, SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.UserPosts[0].CompanyName));
            AutoList.Add(basedata("T_HR_OUTAPPLYRECORD", "OWNERDEPARTMENTID", Info.OWNERDEPARTMENTID, SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.UserPosts[0].DepartmentName));
            AutoList.Add(basedata("T_HR_OUTAPPLYRECORD", "OWNERPOSTID", Info.OWNERPOSTID, SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.UserPosts[0].PostName));
            //AutoList.Add(basedata("T_HR_OUTAPPLYRECORD", "PAYCATEGORY", Info.PAYCATEGORY, PayCatogryDict == null ? "" : PayCatogryDict.DICTIONARYNAME));
            AutoList.Add(basedata("T_HR_OUTAPPLYRECORD", "OVERTIMECATE", Info.OVERTIMECATE, overTimeDict == null ? "" : overTimeDict.DICTIONARYNAME));
            //AutoList.Add(basedata("T_OA_APPROVALINFO", "OWNERCOMPANYID", approvalInfo.OWNERCOMPANYID, StrCompanyName));
            //AutoList.Add(basedata("T_OA_APPROVALINFO", "OWNERDEPARTMENTID", approvalInfo.OWNERDEPARTMENTID, StrDepartmentName));
            //AutoList.Add(basedata("T_OA_APPROVALINFO", "OWNERPOSTID", approvalInfo.OWNERPOSTID, StrPostName));
            //AutoList.Add(basedata("T_OA_APPROVALINFO", "TYPEAPPROVAL", approvalInfo.TYPEAPPROVAL, StrApprovalTypeName));
            //AutoList.Add(basedata("T_OA_APPROVALINFO", "CONTENT", approvalInfo.APPROVALID, approvalInfo.APPROVALID));
            //AutoList.Add(basedata("T_OA_APPROVALINFO", "AttachMent", approvalInfo.APPROVALID, approvalInfo.APPROVALID));
            //    AutoList.Add(basedata("T_HR_LEFTOFFICE", "LEFTOFFICECATEGORY", LEFTOFFICECATEGORY != null ? LEFTOFFICECATEGORY.DICTIONARYVALUE.ToString() : "0", LEFTOFFICECATEGORY != null ? LEFTOFFICECATEGORY.DICTIONARYNAME : ""));
            string a = mx.TableToXml(Info, null, StrSource, AutoList);

            return(a);
        }
Beispiel #5
0
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void btnDelete_Click(object sender, RoutedEventArgs e)
        {
            if (dgOTList.SelectedItems == null)
            {
                ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "DELETE"), Utility.GetResourceStr("CONFIRMBUTTON"));
                return;
            }

            if (dgOTList.SelectedItems.Count == 0)
            {
                ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "DELETE"), Utility.GetResourceStr("CONFIRMBUTTON"));
                return;
            }

            ObservableCollection <string> ids = new ObservableCollection <string>();

            foreach (object ovj in dgOTList.SelectedItems)
            {
                T_HR_OUTAPPLYRECORD ent = ovj as T_HR_OUTAPPLYRECORD;
                if (ent == null)
                {
                    continue;
                }

                if (ent.CHECKSTATE != Convert.ToInt32(CheckStates.UnSubmit).ToString())
                {
                    Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("DELETEAUDITERROR"));
                    break;
                }

                ids.Add(ent.OUTAPPLYID);
            }

            string        Result     = "";
            ComfirmWindow delComfirm = new ComfirmWindow();

            delComfirm.OnSelectionBoxClosed += (obj, result) =>
            {
                clientAtt.DeleteOutApplyAsync(ids);
            };
            delComfirm.SelectionBox(Utility.GetResourceStr("DELETECONFIRM"), Utility.GetResourceStr("DELETEALTER"), ComfirmWindow.titlename, Result);
        }
Beispiel #6
0
 public string UpdateOutApply(T_HR_OUTAPPLYRECORD entOTRd)
 {
     using (OutApplyBLL bllOverTimeRecord = new OutApplyBLL())
     {
         if (entOTRd.STARTDATE <= DateTime.Now)
         {
             string str = "外出申请的开始时间:必须大于当前时间";
             Tracer.Debug(str);
             return(str);
         }
         if (bllOverTimeRecord.UpdateOutApply(entOTRd) == 1)
         {
             return("OK");
         }
         else
         {
             return("Fail");
         }
     }
 }
Beispiel #7
0
        /// <summary>
        /// 加载页面信息
        /// </summary>
        private void InitParas()
        {
            string strOwnerID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID;

            this.IsEnabled = false;
            if (FormType == FormTypes.New)
            {
                InitBaseInf();

                OvertimeRecord            = new T_HR_OUTAPPLYRECORD();
                OvertimeRecord.OUTAPPLYID = Guid.NewGuid().ToString();
                OvertimeRecord.EMPLOYEEID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID;
                //OvertimeRecord.EMPLOYEECODE = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeCode;
                OvertimeRecord.EMPLOYEENAME = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeName;
                OvertimeRecord.CHECKSTATE   = Convert.ToInt32(SMT.SaaS.FrameworkUI.CheckStates.UnSubmit).ToString();
                OvertimeRecord.STARTDATE    = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd") + " 18:00:00");
                OvertimeRecord.ENDDATE      = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd") + " 22:00:00");

                //权限控制
                OvertimeRecord.OWNERCOMPANYID    = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.UserPosts[0].CompanyID;
                OvertimeRecord.OWNERDEPARTMENTID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.UserPosts[0].DepartmentID;
                OvertimeRecord.OWNERPOSTID       = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.UserPosts[0].PostID;
                OvertimeRecord.OWNERID           = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID;

                OvertimeRecord.CREATEDATE   = DateTime.Now;
                OvertimeRecord.CREATEUSERID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID;
                OvertimeRecord.UPDATEDATE   = System.DateTime.Now;
                OvertimeRecord.UPDATEUSERID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID;

                this.DataContext = OvertimeRecord;
                //client.GetAttendanceSolutionByEmployeeIDAsync(strOwnerID);
                this.IsEnabled = true;
                SetToolBar();
            }
            else
            {
                client.GetOutApplyByIDAsync(OverTimeRecordID);
            }
        }
Beispiel #8
0
        /// <summary>
        /// 审核
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void btnAudit_Click(object sender, RoutedEventArgs e)
        {
            if (dgOTList.SelectedItems == null)
            {
                ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "APPOVALBUTTON"), Utility.GetResourceStr("CONFIRMBUTTON"));
                return;
            }

            if (dgOTList.SelectedItems.Count == 0)
            {
                ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "APPOVALBUTTON"), Utility.GetResourceStr("CONFIRMBUTTON"));
                return;
            }

            T_HR_OUTAPPLYRECORD tmpEnt  = dgOTList.SelectedItems[0] as T_HR_OUTAPPLYRECORD;
            OutAppliecationForm form    = new OutAppliecationForm(FormTypes.Audit, tmpEnt.OUTAPPLYID);
            EntityBrowser       browser = new EntityBrowser(form);

            browser.ReloadDataEvent += new EntityBrowser.refreshGridView(browser_ReloadDataEvent);
            browser.FormType         = FormTypes.Audit;
            browser.Show <string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) => { });
        }
 public string UpdateOutApply(T_HR_OUTAPPLYRECORD entOTRd)
 {
     using (OutApplyBLL bllOverTimeRecord = new OutApplyBLL())
     {
         if (entOTRd.STARTDATE <= DateTime.Now)
         {
             string str = "外出申请的开始时间:必须大于当前时间";
             Tracer.Debug(str);
             return str;
         }
         if (bllOverTimeRecord.UpdateOutApply(entOTRd) == 1)
             return "OK";
         else return "Fail";
     }
 }
Beispiel #10
0
        /// <summary>
        /// 加载页面信息
        /// </summary>
        private void InitParas()
        {
            string strOwnerID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID;
            this.IsEnabled = false;
            if (FormType == FormTypes.New)
            {
                InitBaseInf();

                OvertimeRecord = new T_HR_OUTAPPLYRECORD();
                OvertimeRecord.OUTAPPLYID = Guid.NewGuid().ToString();
                OvertimeRecord.EMPLOYEEID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID;
                //OvertimeRecord.EMPLOYEECODE = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeCode;
                OvertimeRecord.EMPLOYEENAME = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeName;
                OvertimeRecord.CHECKSTATE = Convert.ToInt32(SMT.SaaS.FrameworkUI.CheckStates.UnSubmit).ToString();
                OvertimeRecord.STARTDATE = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd") + " 18:00:00");
                OvertimeRecord.ENDDATE = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd") + " 22:00:00");

                //权限控制
                OvertimeRecord.OWNERCOMPANYID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.UserPosts[0].CompanyID;
                OvertimeRecord.OWNERDEPARTMENTID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.UserPosts[0].DepartmentID;
                OvertimeRecord.OWNERPOSTID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.UserPosts[0].PostID;
                OvertimeRecord.OWNERID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID;

                OvertimeRecord.CREATEDATE = DateTime.Now;
                OvertimeRecord.CREATEUSERID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID;
                OvertimeRecord.UPDATEDATE = System.DateTime.Now;
                OvertimeRecord.UPDATEUSERID = SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeID;

                this.DataContext = OvertimeRecord;
                //client.GetAttendanceSolutionByEmployeeIDAsync(strOwnerID);
                this.IsEnabled = true;
                SetToolBar();
            }
            else
            {
                client.GetOutApplyByIDAsync(OverTimeRecordID);
            }
        }
Beispiel #11
0
        private string GetXmlString(string StrSource, T_HR_OUTAPPLYRECORD Info)
        {
            //SMT.Saas.Tools.PermissionWS.T_SYS_DICTIONARY LEFTOFFICECATEGORY = cbxEmployeeType.SelectedItem as SMT.Saas.Tools.PermissionWS.T_SYS_DICTIONARY;
            decimal? stateValue = Convert.ToDecimal("1");
            string checkState = string.Empty;
            SMT.Saas.Tools.PermissionWS.T_SYS_DICTIONARY checkStateDict = (Application.Current.Resources["SYS_DICTIONARY"] as List<SMT.Saas.Tools.PermissionWS.T_SYS_DICTIONARY>).Where(s => s.DICTIONCATEGORY == "CHECKSTATE" && s.DICTIONARYVALUE == stateValue).FirstOrDefault();
            checkState = checkStateDict == null ? "" : checkStateDict.DICTIONARYNAME;


            decimal? postlevelValue = Convert.ToDecimal(tbEmpLevel.Text.Trim());
            string postLevelName = string.Empty;
            SMT.Saas.Tools.PermissionWS.T_SYS_DICTIONARY postLevelDict = (Application.Current.Resources["SYS_DICTIONARY"] as List<SMT.Saas.Tools.PermissionWS.T_SYS_DICTIONARY>).Where(s => s.DICTIONCATEGORY == "POSTLEVEL" && s.DICTIONARYVALUE == postlevelValue).FirstOrDefault();
            postLevelName = postLevelDict == null ? "" : postLevelDict.DICTIONARYNAME;

            //decimal? payCatogryValue = Convert.ToDecimal(Info.PAYCATEGORY);
            //SMT.Saas.Tools.PermissionWS.T_SYS_DICTIONARY PayCatogryDict = (Application.Current.Resources["SYS_DICTIONARY"] as List<SMT.Saas.Tools.PermissionWS.T_SYS_DICTIONARY>).Where(s => s.DICTIONCATEGORY == "PAYCATEGORY" && s.DICTIONARYVALUE == payCatogryValue).FirstOrDefault();

            decimal? overTimeValue = Convert.ToDecimal(Info.OVERTIMECATE);
            SMT.Saas.Tools.PermissionWS.T_SYS_DICTIONARY overTimeDict = (Application.Current.Resources["SYS_DICTIONARY"] as List<SMT.Saas.Tools.PermissionWS.T_SYS_DICTIONARY>).Where(s => s.DICTIONCATEGORY == "OVERTIMECATE" && s.DICTIONARYVALUE == overTimeValue).FirstOrDefault();

            SMT.SaaS.MobileXml.MobileXml mx = new SMT.SaaS.MobileXml.MobileXml();
            List<SMT.SaaS.MobileXml.AutoDictionary> AutoList = new List<SMT.SaaS.MobileXml.AutoDictionary>();
            AutoList.Add(basedata("T_HR_OUTAPPLYRECORD", "CHECKSTATE", "1", checkState));
            AutoList.Add(basedata("T_HR_OUTAPPLYRECORD", "OWNERPOSTNAME", tbOrgName.Text.Trim(), tbOrgName.Text.Trim()));
            AutoList.Add(basedata("T_HR_OUTAPPLYRECORD", "POSTLEVEL", tbEmpLevel.Text.Trim(), postLevelName));
            AutoList.Add(basedata("T_HR_OUTAPPLYRECORD", "EMPLOYEENAME", Info.EMPLOYEENAME, SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.EmployeeName));
            AutoList.Add(basedata("T_HR_OUTAPPLYRECORD", "OWNERCOMPANYID", Info.OWNERCOMPANYID, SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.UserPosts[0].CompanyName));
            AutoList.Add(basedata("T_HR_OUTAPPLYRECORD", "OWNERDEPARTMENTID", Info.OWNERDEPARTMENTID, SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.UserPosts[0].DepartmentName));
            AutoList.Add(basedata("T_HR_OUTAPPLYRECORD", "OWNERPOSTID", Info.OWNERPOSTID, SMT.SAAS.Main.CurrentContext.Common.CurrentLoginUserInfo.UserPosts[0].PostName));
            //AutoList.Add(basedata("T_HR_OUTAPPLYRECORD", "PAYCATEGORY", Info.PAYCATEGORY, PayCatogryDict == null ? "" : PayCatogryDict.DICTIONARYNAME));
            AutoList.Add(basedata("T_HR_OUTAPPLYRECORD", "OVERTIMECATE", Info.OVERTIMECATE, overTimeDict == null ? "" : overTimeDict.DICTIONARYNAME));
            //AutoList.Add(basedata("T_OA_APPROVALINFO", "OWNERCOMPANYID", approvalInfo.OWNERCOMPANYID, StrCompanyName));
            //AutoList.Add(basedata("T_OA_APPROVALINFO", "OWNERDEPARTMENTID", approvalInfo.OWNERDEPARTMENTID, StrDepartmentName));
            //AutoList.Add(basedata("T_OA_APPROVALINFO", "OWNERPOSTID", approvalInfo.OWNERPOSTID, StrPostName));
            //AutoList.Add(basedata("T_OA_APPROVALINFO", "TYPEAPPROVAL", approvalInfo.TYPEAPPROVAL, StrApprovalTypeName));
            //AutoList.Add(basedata("T_OA_APPROVALINFO", "CONTENT", approvalInfo.APPROVALID, approvalInfo.APPROVALID));
            //AutoList.Add(basedata("T_OA_APPROVALINFO", "AttachMent", approvalInfo.APPROVALID, approvalInfo.APPROVALID));
            //    AutoList.Add(basedata("T_HR_LEFTOFFICE", "LEFTOFFICECATEGORY", LEFTOFFICECATEGORY != null ? LEFTOFFICECATEGORY.DICTIONARYVALUE.ToString() : "0", LEFTOFFICECATEGORY != null ? LEFTOFFICECATEGORY.DICTIONARYNAME : ""));
            string a = mx.TableToXml(Info, null, StrSource, AutoList);

            return a;
        }