public 售后服务配件制造申请单(FunctionTreeNodeInfo nodeInfo)
        {
            InitializeComponent();

            m_msgPromulgator.BillType = "售后服务配件制造申请单";

            m_authFlag      = nodeInfo.Authority;
            m_billNoControl = new BillNumberControl(CE_BillTypeEnum.售后服务备件制造申请单, m_billServer);

            dateTimeBegin.Value = new DateTime(ServerTime.Time.Year, ServerTime.Time.Month, 1);
            dateTimeEnd.Value   = ServerTime.Time.AddDays(1);
            cmbDJ_ZT.Text       = "全  部";

            RefreshData();
        }
예제 #2
0
        public override void LoadFormInfo()
        {
            try
            {
                m_billNoControl = new BillNumberControl(CE_BillTypeEnum.TCU软件升级.ToString(), _ServiceTCU);

                _UpdateInfo = _ServiceTCU.GetSingleInfo_TCUSoft(this.FlowInfo_BillNo);
                _ListDID    = _ServiceTCU.GetListDIDInfo(this.FlowInfo_BillNo);
                ShowInfo();
            }
            catch (Exception ex)
            {
                MessageDialog.ShowPromptMessage(ex.Message);
                return;
            }
        }
예제 #3
0
        public 报废单(PlatformManagement.FunctionTreeNodeInfo nodeInfo)
        {
            InitializeComponent();

            m_msgPromulgator.BillType = "报废单";

            m_billNoControl = new BillNumberControl(labelTitle.Text, m_billServer);

            m_authorityFlag = nodeInfo.Authority;

            dateTimePickerST.Value = ServerModule.ServerTime.Time;
            dateTimePickerET.Value = ServerModule.ServerTime.Time.AddDays(1);

            m_billServer.QueryResultFilter = QueryFilterControl.GetFilterString(labelTitle.Text);
            RefreshData();
        }
예제 #4
0
        public 售后配件申请单(PlatformManagement.FunctionTreeNodeInfo nodeInfo)
        {
            InitializeComponent();

            m_authFlag = nodeInfo.Authority;

            m_billNoControl = new BillNumberControl(CE_BillTypeEnum.售后配件申请单, m_serverAfterService);

            string[] strBillStatus = { "全部",
                                       "等待主管审核",
                                       "已完成" };

            checkBillDateAndStatus1.InsertComBox(strBillStatus);

            DataRefresh();
        }
예제 #5
0
        public 技术变更处置单(PlatformManagement.FunctionTreeNodeInfo nodeInfo)
        {
            InitializeComponent();

            m_authFlag = nodeInfo.Authority;
            m_msgPromulgator.BillType = "技术变更单";
            m_billNoControl           = new BillNumberControl(CE_BillTypeEnum.技术变更单, m_technologyServer);

            string[] strBillStatus = { "全部",
                                       "等待批准",
                                       "等待财务审核",
                                       "已完成" };

            checkBillDateAndStatus1.InsertComBox(strBillStatus);
            RefreshDataGirdView();
        }
예제 #6
0
        public override void LoadFormInfo()
        {
            try
            {
                m_billNoControl = new BillNumberControl(CE_BillTypeEnum.整台份请领单.ToString(), m_serviceWholeMachine);
                m_lnqBillInfo   = m_serviceWholeMachine.GetSingleBillInfo(this.FlowInfo_BillNo);

                this.图号型号.m_OnCompleteSearch += new GlobalObject.DelegateCollection.NonArgumentHandle(图号型号_m_OnCompleteSearch);
                this.库房名称.m_OnCompleteSearch += new GlobalObject.DelegateCollection.NonArgumentHandle(库房名称_m_OnCompleteSearch);
                SetInfo();
            }
            catch (Exception ex)
            {
                MessageDialog.ShowErrorMessage(ex.Message);
            }
        }
        public 车间耗用单明细(string billNo)
        {
            InitializeComponent();

            m_strBillNo = billNo;

            m_lnqBill = m_serverConsumption.GetBillSingle(m_strBillNo);
            m_dtList  = m_serverConsumption.GetListInfo(m_strBillNo);

            m_billNoControl = new BillNumberControl(CE_BillTypeEnum.车间耗用单.ToString(), m_serverConsumption);
            m_billMessageServer.BillType = CE_BillTypeEnum.车间耗用单.ToString();

            cmbWSCode.DataSource = m_serverWSBasic.GetWorkShopBasicInfo();

            cmbWSCode.DisplayMember = "车间名称";
            cmbWSCode.ValueMember   = "车间编码";
        }
예제 #8
0
        public 批量零件隔离()
        {
            InitializeComponent();

            m_billMessageServer.BillType = "不合格品隔离处置单";

            m_billNoControl = new BillNumberControl(CE_BillTypeEnum.合格品隔离处置单, m_serverIsolation);

            DataTable dt = UniversalFunction.GetStorageTb();

            for (int i = 0; i < dt.Rows.Count; i++)
            {
                cmbStorage.Items.Add(dt.Rows[i]["StorageName"].ToString());
            }

            cmbStorage.SelectedIndex = -1;
        }
예제 #9
0
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="billID">单据号</param>
        public 售后服务配件制造申请单明细单(string billID, AuthorityFlag m_authFlag)
        {
            InitializeComponent();

            m_msgPromulgator.BillType = "售后服务配件制造申请单";

            FaceAuthoritySetting.SetEnable(this.Controls, m_authFlag);
            FaceAuthoritySetting.SetVisibly(this.toolStrip, m_authFlag);
            this.toolStrip.Visible = true;

            m_billNoControl = new BillNumberControl(CE_BillTypeEnum.售后服务备件制造申请单, m_billServer);

            DataTable dtStorageName = UniversalFunction.GetStorageTb();

            for (int i = 0; i < dtStorageName.Rows.Count; i++)
            {
                if (dtStorageName.Rows[i]["StorageName"].ToString() == "制造库房" ||
                    dtStorageName.Rows[i]["StorageName"].ToString() == "自制半成品库")
                {
                    cmbStorageID.Items.Add(dtStorageName.Rows[i]["StorageName"].ToString());
                }
            }

            cmbStorageID.SelectedIndex = -1;

            if (GlobalObject.GeneralFunction.IsNullOrEmpty(billID))
            {
                lbUserName.Text = BasicInfo.LoginName;
                txtSellID.Text  = m_billNoControl.GetNewBillNo();
                txtSellID.Tag   = "New";
                lbKS.Text       = m_serverDepartment.GetDeptInfoFromPersonnelInfo(BasicInfo.LoginName).Rows[0]["DepartmentName"].ToString();
            }
            else
            {
                m_masterInfo       = m_billServer.GetBill(billID);
                cmbStorageID.Text  = UniversalFunction.GetStorageName(m_masterInfo.StorageID);
                txtSellID.Text     = m_masterInfo.BillID;
                txtBillRemark.Text = m_masterInfo.Remark;
                lbUserName.Text    = m_masterInfo.Applicant;
                lbKS.Text          = m_serverDepartment.GetDeptInfoFromPersonnelInfo(m_masterInfo.Applicant).Rows[0]["DepartmentName"].ToString();
            }

            m_bill = txtSellID.Text;

            RefershDataGridView(m_bill);
        }
예제 #10
0
        public 库房调拨明细单(int intDJ_ID, AuthorityFlag m_authFlag)
        {
            m_billMessageServer.BillType = CE_BillTypeEnum.库房调拨单.ToString();

            InitializeComponent();

            m_billNoControl = new BillNumberControl(CE_BillTypeEnum.库房调拨单, m_serverCannibalize);

            m_intDJID = intDJ_ID;

            FaceAuthoritySetting.SetEnable(this.Controls, m_authFlag);
            FaceAuthoritySetting.SetVisibly(this.toolStrip, m_authFlag);

            this.toolStrip.Visible = true;
            DataTable dt = m_serverStorageInfo.GetStorageNameFromPersonnel(BasicInfo.LoginID);

            if (dt.Rows.Count != 0 && m_intDJID == 0)
            {
                for (int i = 0; i < dt.Rows.Count; i++)
                {
                    cmbInStorage.Items.Add(dt.Rows[i]["StorageName"].ToString());
                }

                cmbInStorage.SelectedIndex = 0;
            }
            else
            {
                dt = UniversalFunction.GetStorageTb();

                for (int i = 0; i < dt.Rows.Count; i++)
                {
                    cmbInStorage.Items.Add(dt.Rows[i]["StorageName"].ToString());
                }

                cmbInStorage.SelectedIndex = 0;
            }

            dt = UniversalFunction.GetStorageTb();

            for (int i = 0; i < dt.Rows.Count; i++)
            {
                cmbOutStorage.Items.Add(dt.Rows[i]["StorageName"].ToString());
            }

            cmbOutStorage.SelectedIndex = -1;
        }
        public 技术变更处置明细(string billNo, AuthorityFlag authFlag)
        {
            InitializeComponent();

            FaceAuthoritySetting.SetVisibly(this.menuStrip1, authFlag);
            menuStrip1.Visible = true;

            m_msgPromulgator.BillType = "技术变更单";

            m_billNoControl = new BillNumberControl(CE_BillTypeEnum.技术变更单, m_technologyServer);

            if (billNo == "")
            {
                txtDJH.Text    = m_billNoControl.GetNewBillNo();
                txtStatus.Text = "新建单据";
            }
            else
            {
                m_billNo = billNo;

                DataRow row = m_technologyServer.GetBillInfo(m_billNo);

                if (row != null)
                {
                    txtDJH.Text          = m_billNo;
                    txtStatus.Text       = row["BillStatus"].ToString();
                    txtChangeReason.Text = row["ChangeReason"].ToString();
                    txtChangeCoding.Text = row["ChangeBillNo"].ToString();
                    m_byteData           = (byte[])row["FileMessage"];
                    lbFileName.Text      = row["FileName"].ToString();
                }
            }

            dataGridView1.DataSource = m_technologyServer.GetListInfo(billNo);

            dataGridView1.Columns["序号"].Visible          = false;
            dataGridView1.Columns["单据号"].Visible         = false;
            dataGridView1.Columns["NewParentID"].Visible = false;
            dataGridView1.Columns["NewGoodsID"].Visible  = false;
            dataGridView1.Columns["OldParentID"].Visible = false;
            dataGridView1.Columns["OldGoodsID"].Visible  = false;

            userControlDataLocalizer1.Init(dataGridView1, this.Name,
                                           UniversalFunction.SelectHideFields(this.Name, dataGridView1.Name, BasicInfo.LoginID));
        }
        public 制度发布流程()
        {
            InitializeComponent();

            string[] strBillStatus = { "全部",
                                       InstitutionBillStatus.新建流程.ToString(),
                                       InstitutionBillStatus.等待科长审查.ToString(),
                                       InstitutionBillStatus.等待负责人审查.ToString(),
                                       InstitutionBillStatus.等待相关负责人审查.ToString(),
                                       InstitutionBillStatus.等待相关分管领导审查.ToString(),
                                       InstitutionBillStatus.等待分管领导审查.ToString(),
                                       InstitutionBillStatus.等待总经理审查.ToString(),
                                       InstitutionBillStatus.流程已结束.ToString() };

            checkBillDateAndStatus1.InsertComBox(strBillStatus);
            m_billNoControl = new BillNumberControl(CE_BillTypeEnum.制度发布流程.ToString(), m_serverInstitution);
            m_billMessageServer.BillType = CE_BillTypeEnum.制度发布流程.ToString();
        }
예제 #13
0
        public override void LoadFormInfo()
        {
            try
            {
                m_billNoControl = new BillNumberControl(CE_BillTypeEnum.制度发布流程.ToString(), m_serverInstitution);
                m_billMessageServer.BillType = CE_BillTypeEnum.制度发布流程.ToString();
                m_lnqInstitution             = m_serverInstitution.GetSingleBill(this.FlowInfo_BillNo);
                ClearInfo();
                ShowInfo();

                m_lnqInstitution        = new FM_InstitutionProcess();
                m_lnqInstitution.BillNo = txtSDBNo.Text;
            }
            catch (Exception ex)
            {
                MessageDialog.ShowErrorMessage(ex.Message);
            }
        }
        public 营销要货计划(PlatformManagement.FunctionTreeNodeInfo nodeInfo)
        {
            InitializeComponent();

            m_msgPromulgator.BillType = "营销要货计划";

            m_authFlag = nodeInfo.Authority;

            InsertCombox();

            ClearDate();

            m_billNoControl = new BillNumberControl(CE_BillTypeEnum.营销要货计划, m_serverMkPlan);

            RefreshDataGirdView(m_serverMkPlan.GetAllBill());

            cmbBillType.SelectedIndex = 0;
        }
        public override void LoadFormInfo()
        {
            try
            {
                m_lnqBillInfo.BillNo         = this.FlowInfo_BillNo;
                m_billNoControl              = new BillNumberControl(CE_BillTypeEnum.物料录入申请单.ToString(), m_serverGoodsEntering);
                m_billMessageServer.BillType = CE_BillTypeEnum.物料录入申请单.ToString();
                m_listGoodsEntering          = m_serverGoodsEntering.GetListInfo(FlowInfo_BillNo);
                StapleInfo.InitUnitComboBox(cmbUnit);

                ClearInfo();
                ShowInfo();
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
        }
예제 #16
0
        public 产品型号变更单(PlatformManagement.FunctionTreeNodeInfo nodeInfo)
        {
            InitializeComponent();

            m_msgPromulgator.BillType = "产品变更单";

            m_billNoControl = new BillNumberControl(CE_BillTypeEnum.产品变更单, m_serverProduct);

            m_authFlag = nodeInfo.Authority;

            ClearDate();
            RefreshDataGirdView(m_serverProduct.GetAllBill());
            cmbBeforeType.DataSource = m_serviceBom.GetAssemblyTypeList();
            cmbAfterType.DataSource  = m_serviceBom.GetAssemblyTypeList();

            dataGridView2.Columns["单据号"].Visible     = false;
            dataGridView2.Columns["变更前物品ID"].Visible = false;
            dataGridView2.Columns["变更后物品ID"].Visible = false;
        }
예제 #17
0
        public 车间异常明细信息处理(string billNo, bool flag)
        {
            InitializeComponent();

            m_billNoControl = new BillNumberControl(CE_BillTypeEnum.车间异常信息记录表.ToString(), m_serverException);
            m_billMessageServer.BillType = CE_BillTypeEnum.车间异常信息记录表.ToString();
            m_strBillNo = billNo;

            if (!flag)
            {
                btn_Add.Enabled    = false;
                btn_Delete.Enabled = false;
                btn_Modify.Enabled = false;
                btnDispose.Visible = false;
            }

            ClearInfo();
            dataGridView1.DataSource = m_serverException.GetListInfo(billNo);
        }
예제 #18
0
        /// <summary>
        /// 删除业务
        /// </summary>
        /// <param name="billNo">业务号</param>
        public void DeleteInfo(string billNo)
        {
            DepotManagementDataContext ctx = CommentParameter.DepotDataContext;

            ctx.Connection.Open();
            ctx.Transaction = ctx.Connection.BeginTransaction();

            IFlowServer       serverFlow    = FlowControlService.ServerModuleFactory.GetServerModule <IFlowServer>();
            BillNumberControl billNoControl = new BillNumberControl(CE_BillTypeEnum.供应商应付账款.ToString(), this);

            try
            {
                var varData = from a in ctx.Bus_PurchasingMG_AccountBill
                              where a.BillNo == billNo
                              select a;

                ctx.Bus_PurchasingMG_AccountBill.DeleteAllOnSubmit(varData);

                var varData1 = from a in ctx.Bus_PurchasingMG_AccountBill_Detail
                               where a.BillNo == billNo
                               select a;

                ctx.Bus_PurchasingMG_AccountBill_Detail.DeleteAllOnSubmit(varData1);

                var varData2 = from a in ctx.Bus_PurchasingMG_AccountBill_Invoice
                               where a.BillNo == billNo
                               select a;

                ctx.Bus_PurchasingMG_AccountBill_Invoice.DeleteAllOnSubmit(varData2);


                ctx.SubmitChanges();
                serverFlow.FlowDelete(ctx, billNo);

                ctx.Transaction.Commit();
                billNoControl.CancelBill(billNo);
            }
            catch (Exception ex)
            {
                ctx.Transaction.Rollback();
                throw new Exception(ex.Message);
            }
        }
        public override void LoadFormInfo()
        {
            try
            {
                m_billNoControl = new BillNumberControl(CE_BillTypeEnum.供应商与零件归属变更单.ToString(), m_serviceChangeBill);
                m_lnqBillInfo   = m_serviceChangeBill.GetSingleBillInfo(this.FlowInfo_BillNo);
                SetInfo();

                if (lbBillStatus.Text != CE_CommonBillStatus.新建单据.ToString())
                {
                    groupBox1.Enabled = false;
                    groupBox2.Enabled = false;
                }
            }
            catch (Exception ex)
            {
                MessageDialog.ShowErrorMessage(ex.Message);
            }
        }
예제 #20
0
        public override void LoadFormInfo()
        {
            try
            {
                m_strBillNo     = this.FlowInfo_BillNo;
                m_billNoControl = new BillNumberControl(CE_BillTypeEnum.发料清单.ToString(), m_findProductOrder);
                m_billMessageServer.BillType = CE_BillTypeEnum.发料清单.ToString();
                m_listDebitSchedule          = m_findProductOrder.GetListInfo(this.FlowInfo_BillNo);

                ClearInfo();
                ShowInfo();

                m_strBillNo = txtSDBNo.Text;
            }
            catch (Exception ex)
            {
                MessageDialog.ShowErrorMessage(ex.Message);
            }
        }
        public 还货单明细(string billNo)
        {
            InitializeComponent();

            m_strBillNo = billNo;

            if (m_strBillNo != null)
            {
                m_lnqBill = m_serverReturn.GetBillSingle(m_strBillNo);
            }

            m_billNoControl = new BillNumberControl(CE_BillTypeEnum.还货单.ToString(), m_serverReturn);
            m_billMessageServer.BillType = CE_BillTypeEnum.还货单.ToString();

            cmbStorage.DataSource = UniversalFunction.GetStorageTb();

            cmbStorage.DisplayMember = "StorageName";
            cmbStorage.ValueMember   = "StorageID";
        }
        public 库房盘点单(PlatformManagement.FunctionTreeNodeInfo nodeInfo)
        {
            InitializeComponent();

            m_billMessageServer.BillType = "库房盘点单";

            m_billNoControl = new BillNumberControl(CE_BillTypeEnum.库房盘点单, m_serverStroageCheck);

            m_authFlag = nodeInfo.Authority;

            DataTable dt = UniversalFunction.GetStorageTb();

            for (int i = 0; i < dt.Rows.Count; i++)
            {
                cmbStorage.Items.Add(dt.Rows[i]["StorageName"].ToString());
            }

            cmbStorage.SelectedIndex = -1;
            RefreshDataGirdView(m_serverStroageCheck.GetAllBill());
        }
예제 #23
0
        public override void LoadFormInfo()
        {
            try
            {
                m_billNoControl = new BillNumberControl(CE_BillTypeEnum.合格品隔离处置单.ToString(), m_serviceIsolation);
                m_lnqBillInfo   = m_serviceIsolation.GetSingleBillInfo(this.FlowInfo_BillNo);

                DataTable dtStorageInfo = UniversalFunction.GetStorageTb();

                cmbStorageID.DataSource    = dtStorageInfo;
                cmbStorageID.DisplayMember = "StorageName";

                SetInfo();
                SetControl();
            }
            catch (Exception ex)
            {
                MessageDialog.ShowErrorMessage(ex.Message);
            }
        }
        public 自制件退货单(PlatformManagement.FunctionTreeNodeInfo nodeInfo)
        {
            InitializeComponent();

            m_billMessageServer.BillType = "自制件退货单";

            m_billNoControl = new BillNumberControl(labelTitle.Text, m_billServer);

            m_billNoControl = new BillNumberControl(CE_BillTypeEnum.自制件退货单, m_billServer);

            m_authFlag = nodeInfo.Authority;

            DataTable dt = UniversalFunction.GetStorageTb();

            for (int i = 0; i < dt.Rows.Count; i++)
            {
                cmbStorage.Items.Add(dt.Rows[i]["StorageName"].ToString());
            }

            cmbStorage.SelectedIndex = -1;

            string[] strBillStatus = { "全部",
                                       MaterialRejectBillBillStatus.新建单据.ToString(),
                                       MaterialRejectBillBillStatus.等待财务审核.ToString(),
                                       MaterialRejectBillBillStatus.等待仓管退货.ToString(),
                                       MaterialRejectBillBillStatus.已完成.ToString() };

            checkBillDateAndStatus1.InsertComBox(strBillStatus);

            #region 被要求使用服务器时间 Modify by cjb on 2012.6.15

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

            #endregion

            txtProvider.Text = CE_WorkShopCode.JJCJ.ToString();
            txtProvider.Tag  = CE_WorkShopCode.JJCJ.ToString();

            menuItemReresh_Click(null, null);
        }
예제 #25
0
        /// <summary>
        /// 删除业务
        /// </summary>
        /// <param name="billNo">业务号</param>
        public void DeleteInfo(string billNo)
        {
            DepotManagementDataContext ctx = CommentParameter.DepotDataContext;

            ctx.Connection.Open();
            ctx.Transaction = ctx.Connection.BeginTransaction();

            IFlowServer       serverFlow    = FlowControlService.ServerModuleFactory.GetServerModule <IFlowServer>();
            BillNumberControl billNoControl = new BillNumberControl(CE_BillTypeEnum.培训计划申请表.ToString(), this);

            try
            {
                var varData = from a in ctx.HR_Train_Plan
                              where a.BillNo == billNo
                              select a;

                var varData1 = from a in ctx.HR_Train_PlanCourse
                               where a.BillNo == billNo
                               select a;

                var varData2 = from a in ctx.HR_Train_PlanUser
                               join b in ctx.HR_Train_PlanCourse
                               on a.PlanCourseID equals b.ID
                               where b.BillNo == billNo
                               select a;

                ctx.HR_Train_PlanUser.DeleteAllOnSubmit(varData2);
                ctx.HR_Train_PlanCourse.DeleteAllOnSubmit(varData1);
                ctx.HR_Train_Plan.DeleteAllOnSubmit(varData);

                ctx.SubmitChanges();
                serverFlow.FlowDelete(ctx, billNo);
                ctx.Transaction.Commit();
                billNoControl.CancelBill(billNo);
            }
            catch (Exception ex)
            {
                ctx.Transaction.Rollback();
                throw new Exception(ex.Message);
            }
        }
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="intDJ_ID">单据ID</param>
        public 营销退货明细单(int billID, AuthorityFlag authFlag)
        {
            m_billNoControl = new BillNumberControl(CE_BillTypeEnum.营销退货单, m_findSellIn);

            m_billMessageServer.BillType = "营销退货单";

            m_intDJID = billID;
            InitializeComponent();

            FaceAuthoritySetting.SetEnable(this.Controls, authFlag);
            FaceAuthoritySetting.SetVisibly(this.toolStrip, authFlag);

            this.toolStrip.Visible = true;
            DataTable dt = UniversalFunction.GetStorageTb();

            for (int i = 0; i < dt.Rows.Count; i++)
            {
                cmbStorage.Items.Add(dt.Rows[i]["StorageName"].ToString());
            }
            cmbStorage.SelectedIndex = -1;
        }
예제 #27
0
        public 调运单(PlatformManagement.FunctionTreeNodeInfo nodeInfo)
        {
            InitializeComponent();
            m_msgPromulgator.BillType = "调运单";
            m_authFlag = nodeInfo.Authority;

            string[] strBillStatus = { "全部",
                                       "等待主管审核",
                                       "等待出库",
                                       "等待发货",
                                       "等待收货",
                                       "等待入库",
                                       "已完成" };


            m_billNoControl = new BillNumberControl(CE_BillTypeEnum.调运单.ToString(), m_serverManeuver);

            checkBillDateAndStatus1.InsertComBox(strBillStatus);

            DataRefresh();
        }
예제 #28
0
        void btnDirectAdd_Click(object sender, System.EventArgs e)
        {
            创意提案明细 frmDetail = new 创意提案明细();

            frmDetail.IsDirectAdd = true;
            FormCommonProcess frm = new FormCommonProcess(CE_BillTypeEnum.创意提案, null, frmDetail, CE_OperatorMode.添加);

            frm.CommonProcessSubmit += new FormCommonProcess.FormSubmit(frm_CommonProcessSubmit);
            OperationType            = CE_FlowOperationType.未知;

            if (frm.ShowDialog() != DialogResult.OK)
            {
                BillNumberControl m_billNoControl = new BillNumberControl(CE_BillTypeEnum.创意提案.ToString(), m_mainService);
                m_billNoControl.CancelBill(frmDetail.LnqBillInfo.BillNo);
            }
            else
            {
                SendMessage();
                m_mainService.DirectAdd(frmDetail.LnqBillInfo.BillNo);
            }
        }
예제 #29
0
        public 自制件工装报检(PlatformManagement.FunctionTreeNodeInfo nodeInfo)
        {
            InitializeComponent();

            m_billMessageServer.BillType = "自制件工装报检";

            m_billNoControl = new BillNumberControl(labelTitle.Text, m_billServer);// new BillNumberControl(labelTitle.Text, m_billServer);

            string[] strBillStatus = { "全部", "新建单据", "等待工装验证", "等待入库", "已入库", "已报废" };

            checkBillDateAndStatus1.InsertComBox(strBillStatus);

            checkBillDateAndStatus1.OnCompleteSearch +=
                new GlobalObject.DelegateCollection.NonArgumentHandle(checkBillDateAndStatus1_OnCompleteSearch);

            m_authorityFlag = nodeInfo.Authority;

            btnRefresh_Click(null, null);

            提交单据ToolStripMenuItem.Visible = true;
        }
        public 合格品隔离处置单(PlatformManagement.FunctionTreeNodeInfo nodeInfo)
        {
            InitializeComponent();

            m_billMessageServer.BillType = "不合格品隔离处置单";

            m_billNoControl = new BillNumberControl(CE_BillTypeEnum.合格品隔离处置单, m_serverIsolation);

            m_authFlag = nodeInfo.Authority;

            DataTable dt = UniversalFunction.GetStorageTb();

            for (int i = 0; i < dt.Rows.Count; i++)
            {
                cmbStorage.Items.Add(dt.Rows[i]["StorageName"].ToString());
            }

            cmbStorage.SelectedIndex = -1;

            string[] strBillStatus = { "全  部",
                                       "新建单据",
                                       "等待隔离原因",
                                       "等待处理结果",
                                       "等待审批确认",
                                       "等待质检结果",
                                       "等待质管主管确认",
                                       "等待采购退货",
                                       "单据已完成" };

            checkBillDateAndStatus1.InsertComBox(strBillStatus);

            checkBillDateAndStatus1.OnCompleteSearch +=
                new GlobalObject.DelegateCollection.NonArgumentHandle(checkBillDateAndStatus1_OnCompleteSearch);

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

            RefreshDataGirdView(m_serverIsolation.GetAllBill(null));
            ClearMessage();
        }