コード例 #1
0
        public 包外返修处理单(PlatformManagement.FunctionTreeNodeInfo nodeInfo)
        {
            InitializeComponent();

            m_billMessageServer.BillType = "三包外返修处理单";

            m_billNoControl = new BillNumberControl(CE_BillTypeEnum.包外返修处理单, m_threePacketsOfTheRepairServer);

            m_authFlag = nodeInfo.Authority;
            cmbProductType.DataSource = m_serviceBom.GetAssemblyTypeList();

            string[] strBillStatus = { "全  部",
                                       "新建单据",
                                       "等待确认收货",
                                       "等待领料明细申请",
                                       "等待返修车间主管审核",
                                       "等待仓管确认出库",
                                       "等待销售策略",
                                       "等待营销总监审核",
                                       "等待财务确认",
                                       "等待返修完成",
                                       "等待营销确认",
                                       "已完成" };

            checkBillDateAndStatus1.InsertComBox(strBillStatus);

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

            RefreshDataGirdView(m_threePacketsOfTheRepairServer.GetAllBill(checkBillDateAndStatus1.cmbBillStatus.Text,
                                                                           checkBillDateAndStatus1.dtpStartTime.Value, checkBillDateAndStatus1.dtpEndTime.Value));
        }
コード例 #2
0
        public 库房报缺查询(PlatformManagement.FunctionTreeNodeInfo nodeInfo)
        {
            InitializeComponent();

            dtp_End.Value = ServerTime.Time.AddDays(1);
            m_authFlag    = nodeInfo.Authority;

            cmbStorage.Items.Add("全部库房");
            DataTable dt = UniversalFunction.GetStorageTb();

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

            cmbStorage.SelectedIndex = 0;

            IBomServer    bomService = ServerModuleFactory.GetServerModule <IBomServer>();
            List <string> tempList   = bomService.GetAssemblyTypeList();

            cmbCVTType.DataSource  = tempList;
            cmbCVT_Plan.DataSource = tempList;

            cmbCustomTemplates.DataSource = m_serverLack.GetCustomTemplatesMain();

            cmbCustomTemplates.ValueMember   = "ID";
            cmbCustomTemplates.DisplayMember = "模板名称";
        }
コード例 #3
0
        public override void LoadFormInfo()
        {
            try
            {
                List <string> lstAsscembly = _serviceBOM.GetAssemblyTypeList();

                if (lstAsscembly != null)
                {
                    cmbEdition.DataSource = lstAsscembly;

                    if (cmbEdition.Items.Count > 0)
                    {
                        cmbEdition.SelectedIndex     = -1;
                        cmbDBOMVersion.DataSource    = null;
                        cmbDBOMVersion.SelectedIndex = -1;
                    }
                }

                _billNoControl = new BillNumberControl(CE_BillTypeEnum.生产BOM变更单.ToString(), _servicePBOMChange);
                _lnqPBOMBill   = _servicePBOMChange.GetItem(this.FlowInfo_BillNo);
                _listDetail    = _servicePBOMChange.GetDetail(this.FlowInfo_BillNo);

                SetInfo();
            }
            catch (Exception ex)
            {
                MessageDialog.ShowPromptMessage(ex.Message);
            }
        }
コード例 #4
0
        /// <summary>
        /// 构造函数
        /// </summary>
        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;
            cmbType.DataSource       = m_serverBom.GetAssemblyTypeList();
            //车型代号 UniversalFunction.GetTCUCarModelInfo().Select(k => k.CarModelNo).ToList();
            cmbType.SelectedIndex = -1;
        }
コード例 #5
0
        public 线不合格品放行单(PlatformManagement.FunctionTreeNodeInfo nodeInfo)
        {
            InitializeComponent();

            m_msgPromulgator.BillType = "下线不合格品放行单";

            m_billNoControl = new BillNumberControl(CE_BillTypeEnum.线不合格品放行单, m_serverReleases);

            m_authFlag = nodeInfo.Authority;

            lbDJZT.Text = "";

            ClearDate();

            cmbEdition.DataSource    = m_serviceBom.GetAssemblyTypeList();
            cmbEdition.SelectedIndex = -1;

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

            checkBillDateAndStatus1.InsertComBox(strBillStatus);

            刷新数据ToolStripMenuItem_Click(null, null);
        }
コード例 #6
0
        public 一次性物料清单(FunctionTreeNodeInfo nodeInfo)
        {
            InitializeComponent();

            m_authFlag = nodeInfo.Authority;
            cmbProductType.DataSource = m_bomService.GetAssemblyTypeList();

            RefreshGridView();
        }
コード例 #7
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;
        }
コード例 #8
0
        public 新旧箱号匹配录入()
        {
            InitializeComponent();

            dataGridView1.DataSource            = m_sell.GetProductCodeMatchingInfo();
            dataGridView1.Columns["序号"].Visible = false;

            List <string> lstProduct = m_bomService.GetAssemblyTypeList();

            cmbNewEdition.DataSource    = lstProduct;
            cmbOldEdition.DataSource    = lstProduct;
            cmbNewEdition.SelectedIndex = -1;
            cmbOldEdition.SelectedIndex = -1;
        }
コード例 #9
0
        private void 生产BOM表_Load(object sender, EventArgs e)
        {
            List <string> lstAsscembly = _serviceBOM.GetAssemblyTypeList();

            if (lstAsscembly != null)
            {
                cmbEdition.DataSource = lstAsscembly;

                if (cmbEdition.Items.Count > 0)
                {
                    cmbEdition.SelectedIndex     = -1;
                    cmbPBOMVersion.DataSource    = null;
                    cmbPBOMVersion.SelectedIndex = -1;
                }
            }
        }
コード例 #10
0
        public 产品入库自动生成()
        {
            InitializeComponent();

            cmbProduct.DataSource    = m_bomService.GetAssemblyTypeList();
            cmbProduct.SelectedIndex = -1;


            DataTable dt = UniversalFunction.GetStorageTb();

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

            cmbStorage.SelectedIndex = -1;

            CreateStyle();
        }
コード例 #11
0
        /// <summary>
        /// 窗体载入
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void UserControlBom_Load(object sender, EventArgs e)
        {
            FaceAuthoritySetting.SetVisibly(toolStrip1, m_authFlag);

            this.cmbProductType.SelectedIndexChanged -= new System.EventHandler(this.cmbProductType_SelectedIndexChanged);

            #region 获取所有产品编码(产品类型)信息

            List <string> lstAsscembly = m_bomServer.GetAssemblyTypeList();

            if (lstAsscembly != null)
            {
                cmbProductType.DataSource = lstAsscembly;

                if (cmbProductType.Items.Count > 0)
                {
                    cmbProductType.SelectedIndex = -1;
                }
            }
            #endregion

            this.cmbProductType.SelectedIndexChanged += new System.EventHandler(this.cmbProductType_SelectedIndexChanged);
        }
コード例 #12
0
 public 填写变速箱编号()
 {
     InitializeComponent();
     cmbProductType.DataSource = m_serviceBom.GetAssemblyTypeList();
 }
コード例 #13
0
        void SpecialHandling()
        {
            m_cmbShow.ValueMember   = null; //设置combox值
            m_cmbShow.DisplayMember = null; //设置combox显示值
            m_cmbShow.DataSource    = null; //将数据表绑定到combox中
            m_cmbShow.SelectedValue = null;
            m_cmbShow.Text          = null;

            DataTable dt = new DataTable();
            DataRow   dr = null;

            switch (treeView1.SelectedNode.Text)
            {
            case "材料收发存汇总表":
                dt = UniversalFunction.GetStorageTb();
                dr = dt.NewRow();
                dr["StorageName"] = "全部库房";
                dr["StorageID"]   = "00";
                dt.Rows.Add(dr);

                m_cmbShow.ValueMember   = "StorageID";   //设置combox值
                m_cmbShow.DisplayMember = "StorageName"; //设置combox显示值
                m_cmbShow.DataSource    = dt;            //将数据表绑定到combox中
                m_cmbShow.SelectedValue = "00";
                m_cmbShow.Text          = "全部库房";
                break;

            case "库房收发存报表":
            case "售后账存信息":
                dt = UniversalFunction.GetStorageTb();

                m_cmbShow.ValueMember   = "StorageID";   //设置combox值
                m_cmbShow.DisplayMember = "StorageName"; //设置combox显示值
                m_cmbShow.DataSource    = dt;            //将数据表绑定到combox中
                break;

            case "BOM表物品最新单价":
            case "成品库房工作表":
            case "看板发料信息汇总表":
                m_cmbShow.ValueMember   = "GoodsCode";                        //设置combox值
                m_cmbShow.DisplayMember = "GoodsCode";                        //设置combox值
                m_cmbShow.DataSource    = m_bomService.GetAssemblyTypeList(); //将数据表绑定到combox中
                //m_cmbShow.SelectedValue = "RDC15-FB";
                m_cmbShow.Text = "RDC15-FB";
                break;

            case "库存资金实时查询":
                dt = UniversalFunction.GetStorageTb();
                dr = dt.NewRow();
                dr["StorageID"]   = "";
                dr["StorageName"] = "所有库房";
                dt.Rows.Add(dr);

                m_cmbShow.ValueMember   = "StorageID";   //设置combox值
                m_cmbShow.DisplayMember = "StorageName"; //设置combox显示值
                m_cmbShow.DataSource    = dt;            //将数据表绑定到combox中
                break;

            case "车间收发存汇总表":
            case "车间耗用报表":
            case "车间工作量统计报表":
                dt           = UniversalFunction.GetWorkShopTb();
                dr           = dt.NewRow();
                dr["WSCode"] = "";
                dr["WSName"] = "所有车间";
                dt.Rows.Add(dr);

                m_cmbShow.ValueMember   = "WSCode"; //设置combox值
                m_cmbShow.DisplayMember = "WSName"; //设置combox显示值
                m_cmbShow.DataSource    = dt;       //将数据表绑定到combox中\
                break;

            default:
                break;
            }
        }