public UserControlOnBusiness(PlatformManagement.FunctionTreeNodeInfo nodeInfo)
        {
            InitializeComponent();

            m_billMessageServer.BillType = "出差申请单";
            m_authorityFlag = nodeInfo.Authority;

            #region 数据筛选
            string[] strBillStatus = { "全部",                                       OnBusinessBillStatus.新建单据.ToString(),
                                       OnBusinessBillStatus.等待随行人员部门确认.ToString(),
                                       OnBusinessBillStatus.等待部门负责人审核.ToString(),
                                       OnBusinessBillStatus.等待分管领导审批.ToString(),
                                       OnBusinessBillStatus.等待总经理批准.ToString(),
                                       OnBusinessBillStatus.等待销差人确认.ToString(),
                                       OnBusinessBillStatus.等待出差结果说明.ToString(),
                                       OnBusinessBillStatus.已完成.ToString() };

            checkBillDateAndStatus1.InsertComBox(strBillStatus);

            checkBillDateAndStatus1.dtpStartTime.Value = ServerTime.Time.AddDays(1).AddMonths(-1);
            checkBillDateAndStatus1.dtpEndTime.Value   = ServerTime.Time.AddDays(1);

            #endregion

            m_onBusinessServer.QueryResultFilter = QueryFilterControl.GetFilterString(labelTitle.Text)
                                                   + checkBillDateAndStatus1.GetSqlString("申请时间", "单据状态");

            RefreshDataGridView();
        }
示例#2
0
        public 新供应商开发申请单(PlatformManagement.FunctionTreeNodeInfo nodeInfo)
        {
            InitializeComponent();

            m_authorityFlag = nodeInfo.Authority;
            RefreshDataGridView();
        }
        public 零星采购单(PlatformManagement.FunctionTreeNodeInfo nodeInfo)
        {
            InitializeComponent();

            m_billMessageServer.BillType = "零星采购申请单";
            m_authorityFlag = nodeInfo.Authority;

            #region 数据筛选
            string[] strBillStatus = { "全部",
                                       MinorPurchaseBillStatus.等待部门负责人审核.ToString(),
                                       MinorPurchaseBillStatus.等待确认日期.ToString(),
                                       MinorPurchaseBillStatus.等待分管领导审核.ToString(),
                                       MinorPurchaseBillStatus.等待财务审核.ToString(),
                                       MinorPurchaseBillStatus.等待总经理审核.ToString(),
                                       MinorPurchaseBillStatus.等待采购工程师确认采购.ToString(),
                                       MinorPurchaseBillStatus.等待确认到货.ToString(),
                                       MinorPurchaseBillStatus.已完成.ToString() };

            checkBillDateAndStatus1.InsertComBox(strBillStatus);
            checkBillDateAndStatus1.dtpStartTime.Value = ServerTime.Time.AddDays(1).AddMonths(-1);
            checkBillDateAndStatus1.dtpEndTime.Value   = ServerTime.Time.AddDays(1);

            #endregion

            RefreshDataGridView();
        }
示例#4
0
        public 部门调动申请明细(AuthorityFlag authority, string billNo)
        {
            InitializeComponent();

            m_billMessageServer.BillType = "部门调动申请单";
            m_authorityFlag = authority;
            m_billNo        = billNo;

            DataTable postDt = m_PostServer.GetOperatingPost(null);

            for (int i = 0; i < postDt.Rows.Count; i++)
            {
                cmbNewWorkPost.Items.Add(postDt.Rows[i]["岗位名称"].ToString());
            }

            IQueryable <View_HR_Dept> m_findDepartment;

            if (m_departmentServer.GetAllDeptInfo(out m_findDepartment, out m_error))
            {
                foreach (var item in m_findDepartment)
                {
                    cmbNewDept.Items.Add(item.部门名称);
                }
            }

            if (m_billNo != "0")
            {
                BindControl();
            }
            else
            {
                ClearControl();
            }
        }
        public UserControlPersonnelLaborContract(AuthorityFlag authority, string workID)
        {
            InitializeComponent();

            m_authorityFlag = authority;
            AuthorityControl(m_authorityFlag);

            m_workID = workID;
            View_HR_PersonnelLaborContract personnelContract = m_laborServer.GetPersonnelContarctByWorkID(m_workID, out error);

            if (personnelContract != null)
            {
                txtProposer.Text   = personnelContract.员工姓名;
                txtRemark.Text     = personnelContract.备注;
                txtTemplet.Text    = personnelContract.合同模板;
                cmbStatus.Text     = personnelContract.合同状态;
                dtpBeginTime.Value = personnelContract.合同起始时间;
                dtpEndTime.Value   = personnelContract.合同终止时间;

                btnFindTemplet.Visible = false;
                txtProposer.Enabled    = false;
                txtProposer.BackColor  = Color.White;
            }
            else
            {
                for (int i = 0; i < groupBox1.Controls.Count; i++)
                {
                    groupBox1.Controls[i].Visible = false;
                }

                groupBox1.Text      = "没有签订合同和协议";
                groupBox1.ForeColor = Color.Red;
            }
        }
        public UserControlContractHistory(PlatformManagement.FunctionTreeNodeInfo nodeInfo)
        {
            InitializeComponent();

            m_authorityFlag = nodeInfo.Authority;

            RefreshControl();
        }
示例#7
0
        /// <summary>
        /// 权限控制
        /// </summary>
        /// <param name="authorityFlag">权限标志</param>
        void AuthorityControl(PlatformManagement.AuthorityFlag authorityFlag)
        {
            FaceAuthoritySetting.SetVisibly(menuStrip, authorityFlag);

            if (((authorityFlag & AuthorityFlag.ConfirmArrival) != AuthorityFlag.Nothing) ||
                ((authorityFlag & AuthorityFlag.StockIn) != AuthorityFlag.Nothing))
            {
                仓库管理员操作ToolStripMenuItem.Visible = true;
            }
        }
        public UserControlPersonnelLaborContract(PlatformManagement.FunctionTreeNodeInfo nodeInfo)
        {
            InitializeComponent();

            m_authorityFlag = nodeInfo.Authority;

            RefreshControl();

            txtProposer.OnCompleteSearch += new GlobalObject.DelegateCollection.NonArgumentHandle(txtProposer_OnCompleteSearch);
        }
        public 零星采购变更处置单(PlatformManagement.FunctionTreeNodeInfo nodeInfo)
        {
            InitializeComponent();

            m_authorityFlag = nodeInfo.Authority;
            string[] strBillStatus = { "全部", "等待请购人确认", "等待主管审核", "已完成" };

            checkBillDateAndStatus1.InsertComBox(strBillStatus);
            checkBillDateAndStatus1.dtpStartTime.Value = ServerTime.Time.AddDays(1).AddMonths(-1);
            checkBillDateAndStatus1.dtpEndTime.Value   = ServerTime.Time.AddDays(1);

            RefreshDataGridView();
        }
示例#10
0
        public TCU返修信息(PlatformManagement.FunctionTreeNodeInfo nodeInfo)
        {
            InitializeComponent();

            m_billMessageServer.BillType = "TCU返修信息管理";
            m_authorityFlag = nodeInfo.Authority;

            string[] strBillStatus = { "全部", "等待质管确认", "已完成" };

            checkBillDateAndStatus1.InsertComBox(strBillStatus);

            checkBillDateAndStatus1.dtpStartTime.Value = ServerTime.Time.AddDays(1).AddMonths(-1);
            checkBillDateAndStatus1.dtpEndTime.Value   = ServerTime.Time.AddDays(1);

            RefreshControl();
        }
示例#11
0
        public UserControlHoliday(PlatformManagement.FunctionTreeNodeInfo nodeInfo)
        {
            InitializeComponent();

            m_authorityFlag = nodeInfo.Authority;

            menuStrip1.Visible = true;

            DataTable holidayTypeDt = m_holidayServer.GetHolidayType();

            if (holidayTypeDt != null && holidayTypeDt.Rows.Count > 0)
            {
                for (int i = 0; i < holidayTypeDt.Rows.Count; i++)
                {
                    cmbHolidayType.Items.Add(holidayTypeDt.Rows[i]["节假日名称"].ToString());
                }
            }

            RefreshControl();
        }
示例#12
0
        public 培训统计(PlatformManagement.FunctionTreeNodeInfo nodeInfo)
        {
            InitializeComponent();

            m_authorityFlag = nodeInfo.Authority;
            DateTime time = ServerTime.Time;

            dtpQueryStartTime.Value = time.AddDays(1).AddMonths(-1);
            dtpQueryEndTime.Value   = time.AddDays(1);
            dtpStartTime.Value      = time;
            dtpEndTime.Value        = time;

            RefreshDataGridView();

            //获取考勤作息时间
            IQueryable <HR_AttendanceScheme> dtScheme = m_attendanceSchemeServer.GetLinqResult();

            string punchInMorning = dtScheme.Take(1).Single().BeginTimeInTheMorning.Value.Hour.ToString() +
                                    ":" + dtScheme.Take(1).Single().BeginTimeInTheMorning.Value.Minute.ToString();

            string punchInMorningEnd = dtScheme.Take(1).Single().EndTimeInTheMorning.Value.Hour.ToString() +
                                       ":" + dtScheme.Take(1).Single().EndTimeInTheMorning.Value.Minute.ToString();

            string punchInAfternoonEnd = dtScheme.Take(1).Single().EndTimeInTheAfternoon.Value.Hour.ToString() +
                                         ":" + dtScheme.Take(1).Single().EndTimeInTheAfternoon.Value.Minute.ToString();

            string punchInAfternoon = dtScheme.Take(1).Single().BeginTimeInTheAfternoon.Value.Hour.ToString() +
                                      ":" + dtScheme.Take(1).Single().BeginTimeInTheAfternoon.Value.Minute.ToString();

            double restHours = (Convert.ToDateTime(punchInAfternoon) - Convert.ToDateTime(punchInMorningEnd)).Hours;

            restHours += Convert.ToDouble((Convert.ToDateTime(punchInAfternoon) - Convert.ToDateTime(punchInMorningEnd)).Minutes) / 60;

            m_punchInMorning      = punchInMorning;
            m_punchInMorningEnd   = punchInMorningEnd;
            m_punchInAfternoonEnd = punchInAfternoonEnd;
            m_punchInAfternoon    = punchInAfternoon;
            m_restHours           = restHours;
        }
        public UserControlOvertimeBill(PlatformManagement.FunctionTreeNodeInfo nodeInfo)
        {
            InitializeComponent();

            m_billMessageServer.BillType = "加班申请单";

            m_authorityFlag = nodeInfo.Authority;

            #region 数据筛选
            string[] strBillStatus = { "全部",                                    OverTimeBillStatus.新建单据.ToString(),
                                       OverTimeBillStatus.等待主管审核.ToString(),
                                       OverTimeBillStatus.等待部门负责人审核.ToString(),
                                       OverTimeBillStatus.等待分管领导审批.ToString(),
                                       OverTimeBillStatus.已完成.ToString() };

            checkBillDateAndStatus1.InsertComBox(strBillStatus);

            checkBillDateAndStatus1.dtpStartTime.Value = ServerTime.Time.AddDays(1).AddMonths(-1);
            checkBillDateAndStatus1.dtpEndTime.Value   = ServerTime.Time.AddDays(1);

            #endregion

            RefreshDataGridView();
        }
示例#14
0
 /// <summary>
 /// 权限控制
 /// </summary>
 /// <param name="authorityFlag">权限标志</param>
 void AuthorityControl(PlatformManagement.AuthorityFlag authorityFlag)
 {
     FaceAuthoritySetting.SetVisibly(toolStrip1, authorityFlag);
 }
 /// <summary>
 /// 权限控制
 /// </summary>
 /// <param name="authorityFlag">权限标志</param>
 void AuthorityControl(PlatformManagement.AuthorityFlag authorityFlag)
 {
     FaceAuthoritySetting.SetVisibly(menuStrip, authorityFlag);
     FaceAuthoritySetting.SetEnable(this.Controls, authorityFlag);
 }
示例#16
0
        public 供应商档案管理(PlatformManagement.FunctionTreeNodeInfo nodeInfo)
        {
            InitializeComponent();

            m_authorityFlag = nodeInfo.Authority;
        }
示例#17
0
        public UserControlPersonnelHistory(PlatformManagement.FunctionTreeNodeInfo nodeInfo)
        {
            InitializeComponent();

            m_authorityFlag = nodeInfo.Authority;
        }
        public FormOverTimeList(AuthorityFlag authFlag, int billID)
        {
            InitializeComponent();

            IQueryable <HR_AttendanceScheme> dtScheme = m_attendanceSchemeServer.GetLinqResult();

            string punchInMorning = dtScheme.Take(1).Single().BeginTimeInTheMorning.Value.Hour.ToString() +
                                    ":" + dtScheme.Take(1).Single().BeginTimeInTheMorning.Value.Minute.ToString();

            string punchInMorningEnd = dtScheme.Take(1).Single().EndTimeInTheMorning.Value.Hour.ToString() +
                                       ":" + dtScheme.Take(1).Single().EndTimeInTheMorning.Value.Minute.ToString();

            string punchInAfternoonEnd = dtScheme.Take(1).Single().EndTimeInTheAfternoon.Value.Hour.ToString() +
                                         ":" + dtScheme.Take(1).Single().EndTimeInTheAfternoon.Value.Minute.ToString();

            string punchInAfternoon = dtScheme.Take(1).Single().BeginTimeInTheAfternoon.Value.Hour.ToString() +
                                      ":" + dtScheme.Take(1).Single().BeginTimeInTheAfternoon.Value.Minute.ToString();

            double restHours = (Convert.ToDateTime(punchInAfternoon) - Convert.ToDateTime(punchInMorningEnd)).Hours;

            restHours += Convert.ToDouble((Convert.ToDateTime(punchInAfternoon) - Convert.ToDateTime(punchInMorningEnd)).Minutes) / 60;

            m_punchInMorning      = punchInMorning;
            m_punchInMorningEnd   = punchInMorningEnd;
            m_punchInAfternoonEnd = punchInAfternoonEnd;
            m_punchInAfternoon    = punchInAfternoon;
            m_restHours           = restHours;

            m_billMessageServer.BillType = "加班申请单";

            m_authorityFlag = authFlag;

            if (billID != 0)
            {
                m_billNo = billID.ToString();

                BindControl(m_billNo);
            }
            else
            {
                txtApplicant.Text      = BasicInfo.LoginName;
                txtApplicant.Tag       = BasicInfo.LoginID;
                lblStatus.Text         = OverTimeBillStatus.新建单据.ToString();
                cbAuthorize.Visible    = false;
                cbVerify.Visible       = false;
                numVerifyHours.Visible = false;
                lblVerifyHours.Visible = false;

                DateTime time = ServerTime.Time;

                if (!m_overTimeServer.IsChooseDoubleRest(UniversalFunction.GetPersonnelInfo(txtApplicant.Tag.ToString()).职位编码.ToString(), "", ""))
                {
                    if (Convert.ToDateTime(dtpEndTime.Value.ToShortTimeString()) > Convert.ToDateTime(m_punchInAfternoonEnd))
                    {
                        if ((dtpEndTime.Value.Month > 9 || dtpEndTime.Value.Month < 5))
                        {
                            dtpBeginTime.Value = Convert.ToDateTime(dtpBeginTime.Value.ToShortDateString() + " " + "17:30:00");
                        }
                        else if (dtpEndTime.Value.Month >= 5)
                        {
                            dtpBeginTime.Value = Convert.ToDateTime(dtpBeginTime.Value.ToShortDateString() + " " + "18:30:00");
                        }
                    }
                }

                dtpDate.Value = time;
            }

            DataTable dt = m_personnerServer.GetHighestDept(txtApplicant.Tag.ToString());

            if (dt != null && dt.Rows.Count > 0)
            {
                m_highDept = dt.Rows[0]["deptCode"].ToString();
            }

            人力toolStripButton.Visible   = false;
            toolStripSeparator4.Visible = false;

            dtpBeginTime.ValueChanged += new EventHandler(DateTimePick_ValueChanged);
            dtpEndTime.ValueChanged   += new EventHandler(DateTimePick_ValueChanged);
        }
示例#19
0
        public 销售清单明细(PlatformManagement.AuthorityFlag authorityFlag, string billNo)
        {
            InitializeComponent();

            m_authFlag = authorityFlag;
            m_billNo   = billNo;
            m_billMessageServer.BillType = "销售清单";

            DataTable dtMain = m_marketPartBillServer.GetDataByBillNo(m_billNo);

            if (dtMain != null)
            {
                txtBillNo.Text     = m_billNo;
                txtClient.Text     = dtMain.Rows[0]["客户名称"].ToString();
                txtClient.Tag      = dtMain.Rows[0]["ClientID"].ToString();
                txtAssociated.Text = dtMain.Rows[0]["营销出库单号"].ToString();
                txtRecorder.Text   = dtMain.Rows[0]["销售人员"].ToString();
                txtRecordTime.Text = dtMain.Rows[0]["销售时间"].ToString();
                txtMainRemark.Text = dtMain.Rows[0]["备注"].ToString();
                txtStatus.Text     = dtMain.Rows[0]["单据状态"].ToString();
                cbCarLoad.Checked  = Convert.ToBoolean(dtMain.Rows[0]["是否套用整车厂"].ToString());

                if (dtMain.Rows[0]["总金额"].ToString() == "")
                {
                    numAmount.Value = 0;
                }
                else
                {
                    numAmount.Value = Convert.ToDecimal(dtMain.Rows[0]["总金额"].ToString());
                }

                if (dtMain.Rows[0]["价格套用的整车厂"] != null)
                {
                    tbsUseClient.Text = dtMain.Rows[0]["价格套用的整车厂"].ToString();
                    tbsUseClient.Tag  = dtMain.Rows[0]["价格套用的整车厂编码"].ToString();
                }

                if (dtMain.Rows[0]["营销审核时间"] != null)
                {
                    txtYXAuditTime.Text = dtMain.Rows[0]["营销审核时间"].ToString();
                }
                else
                {
                    txtYXAuditTime.Text = ServerTime.Time.ToString();
                }

                if (dtMain.Rows[0]["营销审核人"] != null)
                {
                    txtAuditor.Text = dtMain.Rows[0]["营销审核人"].ToString();
                }
                else
                {
                    txtCWAuditor.Text = BasicInfo.LoginName;
                }

                if (dtMain.Rows[0]["审核时间"] != null)
                {
                    txtCWAuditTime.Text = dtMain.Rows[0]["审核时间"].ToString();
                }
                else
                {
                    txtCWAuditTime.Text = ServerTime.Time.ToString();
                }

                if (dtMain.Rows[0]["财务审核人"] != null)
                {
                    txtCWAuditor.Text = dtMain.Rows[0]["财务审核人"].ToString();
                }
                else
                {
                    txtCWAuditor.Text = BasicInfo.LoginName;
                }
            }

            RefreshControl();
            txtClient.OnCompleteSearch  += new GlobalObject.DelegateCollection.NonArgumentHandle(txtClient_OnCompleteSearch);
            tbsOutCode.OnCompleteSearch += new GlobalObject.DelegateCollection.NonArgumentHandle(tbsOutCode_OnCompleteSearch);

            if (txtStatus.Text == "等待销售人员确认")
            {
                tbsOutCode.Enabled = true;
            }
            else
            {
                tbsOutCode.Enabled = false;
            }
        }
        public UserControlResume(PlatformManagement.FunctionTreeNodeInfo nodeInfo)
        {
            InitializeComponent();

            m_authorityFlag = nodeInfo.Authority;
        }