Beispiel #1
0
        /// <summary>
        /// 弹出表单子窗口,以便编辑考勤异常扣款定义
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void btnEdit_Click(object sender, RoutedEventArgs e)
        {
            string strDeductDetailID = string.Empty;

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

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

            T_HR_ATTENDANCEDEDUCTDETAIL ent = dgDeductDetailList.SelectedItems[0] as T_HR_ATTENDANCEDEDUCTDETAIL;

            strDeductDetailID = ent.DEDUCTDETAILID.ToString();
            AttendanceDeductDetailForm formDetail = new AttendanceDeductDetailForm(FormTypes.Edit, strDeductDetailID, entAttendanceDeductMaster);
            EntityBrowser entBrowser = new EntityBrowser(formDetail);

            entBrowser.MinWidth         = 700;
            entBrowser.MinHeight        = 300;
            entBrowser.ReloadDataEvent += new EntityBrowser.refreshGridView(entBrowser_ReloadDataEvent);
            entBrowser.Show <string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) => { });
        }
Beispiel #2
0
        /// <summary>
        /// 弹出表单子窗口,以便新增考勤异常扣款定义
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void btnNew_Click(object sender, RoutedEventArgs e)
        {
            string strDeductDetailID = string.Empty;
            AttendanceDeductDetailForm formDetail = new AttendanceDeductDetailForm(FormTypes.New, strDeductDetailID, entAttendanceDeductMaster);
            EntityBrowser entBrowser = new EntityBrowser(formDetail);

            entBrowser.MinWidth         = 720;
            entBrowser.MinHeight        = 300;
            entBrowser.ReloadDataEvent += new EntityBrowser.refreshGridView(entBrowser_ReloadDataEvent);
            entBrowser.Show <string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) => { });
        }
        /// <summary>
        /// 弹出表单子窗口,以便编辑考勤异常扣款定义
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void btnEdit_Click(object sender, RoutedEventArgs e)
        {
            string strDeductDetailID = string.Empty;
            if (dgDeductDetailList.SelectedItems == null)
            {
                ComfirmWindow.ConfirmationBox(Utility.GetResourceStr("CONFIRMINFO"), Utility.GetResourceStr("SELECTERROR", "EDIT"), Utility.GetResourceStr("CONFIRMBUTTON"));
                return;
            }

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

            T_HR_ATTENDANCEDEDUCTDETAIL ent = dgDeductDetailList.SelectedItems[0] as T_HR_ATTENDANCEDEDUCTDETAIL;

            strDeductDetailID = ent.DEDUCTDETAILID.ToString();
            AttendanceDeductDetailForm formDetail = new AttendanceDeductDetailForm(FormTypes.Edit, strDeductDetailID, entAttendanceDeductMaster);
            EntityBrowser entBrowser = new EntityBrowser(formDetail);
            entBrowser.MinWidth = 700;
            entBrowser.MinHeight = 300;
            entBrowser.ReloadDataEvent += new EntityBrowser.refreshGridView(entBrowser_ReloadDataEvent);
            entBrowser.Show<string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) => { });
        }
 /// <summary>
 /// 弹出表单子窗口,以便新增考勤异常扣款定义
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void btnNew_Click(object sender, RoutedEventArgs e)
 {
     string strDeductDetailID = string.Empty;
     AttendanceDeductDetailForm formDetail = new AttendanceDeductDetailForm(FormTypes.New, strDeductDetailID, entAttendanceDeductMaster);
     EntityBrowser entBrowser = new EntityBrowser(formDetail);
     entBrowser.MinWidth = 720;
     entBrowser.MinHeight = 300;
     entBrowser.ReloadDataEvent += new EntityBrowser.refreshGridView(entBrowser_ReloadDataEvent);
     entBrowser.Show<string>(DialogMode.Default, SMT.SAAS.Main.CurrentContext.Common.ParentLayoutRoot, "", (result) => { });
 }