Exemple #1
0
        /// <summary>
        /// 窗体加载事件
        /// </summary>
        private void FrmProjectPlanTask_Load(object sender, EventArgs e)
        {
            try
            {
                ControlCommonInit ctlInit = new ControlCommonInit();
                ctlInit.SearchLookUpEdit_ProjectList(searchLookUpProjectNo, false);
                //searchLookUpProjectNo.Properties.DataSource = commonDAO.QueryProjectList(false);
                lookUpCreator.Properties.DataSource = commonDAO.QueryUserInfo_OnlyColumn(false);

                searchLookUpTaskNo.Properties.DataSource      = null;
                searchLookUpProjectUser.Properties.DataSource = null;

                schedulerStoragePlanTask.Appointments.DataSource            = bSAppointments;
                schedulerStoragePlanTask.Appointments.DataMember            = "";
                schedulerStoragePlanTask.Resources.DataSource               = bSProjectPlanTask;
                schedulerStoragePlanTask.Resources.DataMember               = "";
                schedulerStoragePlanTask.AppointmentDependencies.DataSource = bSTaskDependencies;
                schedulerStoragePlanTask.AppointmentDependencies.DataMember = "";

                schedulerPlanTask.Start = DateTime.Now.Date;

                schedulerPlanTask.Views.GanttView.ResourcesPerPage = SystemInfo.Gantt_ResourcesPerPage;
                schedulerPlanTask.Views[SchedulerViewType.Gantt].AppointmentDisplayOptions.AppointmentHeight = SystemInfo.Gantt_SchedulerBarHeight;
                schedulerStoragePlanTask.Appointments.Labels.GetById(0).Color = SystemInfo.Gantt_SchedulerBarColor;
            }
            catch (Exception ex)
            {
                ExceptionHandler.HandleException(this.Text + "--窗体加载事件错误。", ex);
            }
        }
Exemple #2
0
        /// <summary>
        /// 窗体加载事件
        /// </summary>
        private void FrmWorkFlowDataHandle_Load(object sender, EventArgs e)
        {
            try
            {
                this.Text = orderNameStr + "单据处理";
                lookUpPrepared.Properties.DataSource = commonDAO.QueryUserInfo_OnlyColumn(false);

                string dataNoStrs = "";
                foreach (string dataNo in dataNoList)
                {
                    dataNoStrs += dataNo + ",";
                }

                textDataNo.Text          = dataNoStrs.Substring(0, dataNoStrs.Length - 1);
                lookUpPrepared.EditValue = SystemInfo.user.AutoId;
                memoApproverOption.Text  = "";

                if (!wfHandleDAO.MultiOrderWorkFlowsIsPower(orderType, WorkFlowsHandleDAO.LineType.审批, dataNoList))
                {
                    for (int i = 0; i < radioApproverResult.Properties.Items.Count; i++)
                    {
                        if (radioApproverResult.Properties.Items[i].Description == "同意")
                        {
                            radioApproverResult.Properties.Items.RemoveAt(i);
                            break;
                        }
                    }
                }
                if (!wfHandleDAO.MultiOrderWorkFlowsIsPower(orderType, WorkFlowsHandleDAO.LineType.拒绝, dataNoList))
                {
                    for (int i = 0; i < radioApproverResult.Properties.Items.Count; i++)
                    {
                        if (radioApproverResult.Properties.Items[i].Description == "不同意")
                        {
                            radioApproverResult.Properties.Items.RemoveAt(i);
                            break;
                        }
                    }
                }
                if (radioApproverResult.Properties.Items.Count == 0)
                {
                    MessageHandler.ShowMessageBox("您选择的登记单包含没有操作登记单[审批]和[拒绝]的权限,请联系管理员调整权限后再进行操作。");
                    this.Close();
                    return;
                }

                radioApproverResult.SelectedIndex = 0;

                memoApproverOption.Focus();
            }
            catch (Exception ex)
            {
                ExceptionHandler.HandleException(this.Text + "--窗体加载事件错误。", ex);
            }
        }
Exemple #3
0
 /// <summary>
 /// 窗体加载事件
 /// </summary>
 private void FrmRepertoryInfo_Load(object sender, EventArgs e)
 {
     try
     {
         repLookUpCreator.DataSource = commonDAO.QueryUserInfo_OnlyColumn(false);
     }
     catch (Exception ex)
     {
         //ExceptionHandler.HandleException(this.Text + "--窗体加载事件错误。", ex);
         ExceptionHandler.HandleException(this.Text + "--" + f.tsmiCtjzsjcw.Text, ex);
     }
 }
Exemple #4
0
 /// <summary>
 /// 窗体加载事件
 /// </summary>
 private void FrmApprovalList_Load(object sender, EventArgs e)
 {
     try
     {
         FrmCommonDAO commonDAO = new FrmCommonDAO();
         repItemLookUpTypeNo.DataSource   = commonDAO.QueryApprovalType(false);
         repItemLookUpApprover.DataSource = commonDAO.QueryUserInfo_OnlyColumn(false);
     }
     catch (Exception ex)
     {
         //ExceptionHandler.HandleException(this.Text + "--窗体加载事件错误。", ex);
         ExceptionHandler.HandleException(this.Text + "--" + f.tsmiCtjzsjcw.Text, ex);
     }
 }
        /// <summary>
        /// 窗体加载事件
        /// </summary>
        private void FrmRepertoryLocationInfo_Load(object sender, EventArgs e)
        {
            try
            {
                DataTable repertoryInfoTable = commonDAO.QueryRepertoryInfo(false);
                lookUpRepertoryId.Properties.DataSource = repertoryInfoTable;

                repLookUpRepertoryId.DataSource = repertoryInfoTable;
                repLookUpCreator.DataSource     = commonDAO.QueryUserInfo_OnlyColumn(false);
            }
            catch (Exception ex)
            {
                ExceptionHandler.HandleException(this.Text + "--窗体加载事件错误。", ex);
            }
        }
Exemple #6
0
        /// <summary>
        /// 窗体加载事件
        /// </summary>
        private void FrmWorkFlowEdit_Load(object sender, EventArgs e)
        {
            try
            {
                lookUpFunctionModule.Properties.DataSource     = wfEditDAO.QueryWorkFlowType();
                searchLookUpFlowModuleId.Properties.DataSource = wfDAO.QueryWorkFlowModule(false);
                lookUpCreator.Properties.DataSource            = commonDAO.QueryUserInfo_OnlyColumn(false);
                radioHandleCate_SelectedIndexChanged(null, null);

                diagramCopyBarItem1.ImageUri = "copy;Colored;Size32x32";
                diagramShapeToolSelectionBarItem1.ButtonStyle = DevExpress.XtraBars.BarButtonStyle.Check;
                btnRefresh_Click(null, null);
            }
            catch (Exception ex)
            {
                ExceptionHandler.HandleException(this.Text + "--窗体加载事件错误。", ex);
            }
        }
Exemple #7
0
        /// <summary>
        /// 窗体加载事件
        /// </summary>
        private void FrmShelfInfo_Load(object sender, EventArgs e)
        {
            try
            {
                ControlCommonInit ctlInit = new ControlCommonInit();
                ctlInit.SearchLookUpEdit_RepertoryLocationInfo(SearchRepertoryLocationId, false);
                //DataTable locationInfoTable = commonDAO.QueryRepertoryLocationInfo(false);
                //SearchRepertoryLocationId.Properties.DataSource = locationInfoTable;

                repLookUpRepertoryLocationId.DataSource = SearchRepertoryLocationId.Properties.DataSource;
                repLookUpRepertoryInfoId.DataSource     = commonDAO.QueryRepertoryInfo(false);
                repLookUpCreator.DataSource             = commonDAO.QueryUserInfo_OnlyColumn(false);
            }
            catch (Exception ex)
            {
                //ExceptionHandler.HandleException(this.Text + "--窗体加载事件错误。", ex);
                ExceptionHandler.HandleException(this.Text + "--" + f.tsmiCtjzsjcw.Text, ex);
            }
        }