示例#1
0
        //
        //查找数据
        //
        private void btn_Search_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            DataSet ds_3D   = new DataSet();
            DataSet ds_Exfo = new DataSet();

            Maticsoft.Model.SerialNumber    _SerialNumber = new Maticsoft.Model.SerialNumber();
            Maticsoft.Model.WorkOrder       _WorkOrder    = new Maticsoft.Model.WorkOrder();
            Maticsoft.BLL.User_3D_Test_Good _M_Test_3D    = new Maticsoft.BLL.User_3D_Test_Good();
            //
            _SerialNumber = _M_SerialNumber.GetModel(txb_Barcode.Text.Trim());
            _WorkOrder    = _M_WorkOrder.GetModel(_SerialNumber.OrderID);
            //
            if (_WorkOrder.InspectMethod == Maticsoft.Model.E_InspectMethod.MPO检测)
            {
                ds_3D = _M_MultiFiber.Getdata_Method_mpo(_SerialNumber.SN);
            }
            else
            {
                ds_3D = _M_Pack_3D.GetList("ClientSN ='" + _SerialNumber.SN + "'");
            }

            ds_Exfo = _M_Pack_Exfo.GetList("ClientSN ='" + _SerialNumber.SN + "'");
            //

            dgv_3D.ItemsSource   = ds_3D.Tables[0].DefaultView;
            dgv_Exfo.ItemsSource = ds_Exfo.Tables[0].DefaultView;
        }
示例#2
0
 /// <summary>
 /// 显示工单跳线领取状况 列表显示
 /// </summary>
 /// <param name="_Order"></param>
 /// <param name="temds"></param>
 /// <param name="OrderInfoChart"></param>
 private void ShowInfo_MaterialControl(Maticsoft.Model.WorkOrder _Order, DataSet temds, DataSeries OrderInfoChart)
 {
     MCP_CS.Cls_OrderInfo.Order = _WorkOrder.GetModel(txb_Info_OrderID.Text);
     string[] temOrd = new string[1] {
         txb_Info_OrderID.Text
     };
     lsv_ShowOrderMaterialInfo.DataContext = MCP_CS.Cls_OrderInfo.GetOrderInfo(temOrd);
     dgv_OrderMaterialInfo.ItemsSource     = MCP_CS.Cls_OrderInfo.GetOrderMaterialInfo.Tables[0].DefaultView;
 }
示例#3
0
        /***************************  方法  ********************************************/

        /// <summary>
        /// 显示工单信息
        /// </summary>
        /// <param name="OrderID"></param>
        private void showOrderInfo(string OrderID)
        {
            #region 之前代码
            // DataSet _OrderInfo = _WorkOrder.GetOrderInfo(OrderID);                                          //工单基本信息

            // dgv_OrderInfo.ItemsSource = _WorkOrder.GetOrderMaterial(OrderID).Tables[0].DefaultView;      //工单物料需领用量
            //窗体控件显示

            /*
             * txb_Info_OrderID.Text = _OrderInfo.Tables[0].Rows[0]["TA001"].ToString() +"-"+ _OrderInfo.Tables[0].Rows[0]["TA002"].ToString();
             * txb_Info_Prodotto_Num.Text = _OrderInfo.Tables[0].Rows[0]["品号"].ToString();
             * txb_Info_Prodotto_Name.Text = _OrderInfo.Tables[0].Rows[0]["品名"].ToString();
             * txb_Info_Model.Text =_OrderInfo.Tables[0].Rows[0]["规格"].ToString();
             * txb_Info_CommenceData.Text = _OrderInfo.Tables[0].Rows[0]["开工日期"].ToString().Trim();
             * txb_Info_CompletionData.Text =_OrderInfo.Tables[0].Rows[0]["完工日期"].ToString();
             * lab_Info_OrderCount.Text = _OrderInfo.Tables[0].Rows[0]["批量"].ToString().Trim();
             */
            #endregion
            Maticsoft.BLL.WorkOrder     _M_OrderInfo     = new Maticsoft.BLL.WorkOrder();
            Maticsoft.BLL.OrderMaterial _M_OrderMaterial = new Maticsoft.BLL.OrderMaterial();
            Maticsoft.Model.WorkOrder   _OrderInfo       = new Maticsoft.Model.WorkOrder();
            //
            _OrderInfo = _M_OrderInfo.GetModel(OrderID);
            if (_OrderInfo != null)
            {
                txb_Info_OrderID.Text        = _OrderInfo.OrderID;
                txb_Info_Prodotto_Name.Text  = _OrderInfo.ProductName;
                txb_Info_Model.Text          = _OrderInfo.Model;
                txb_Info_CompletionData.Text = _OrderInfo.DeliveryDate;

                //
                DataSet temMaterialList = _M_OrderMaterial.GetList("OrderID= N'" + OrderID + "'");   //工单物料需领用量
                _WTT_MaterialList = PressMaterialList(temMaterialList);
                dgv_OrderInfo_Material.ItemsSource = _WTT_MaterialList.Tables[0].DefaultView;


                //图表表示
                Show_OrderChart(_OrderInfo);
            }
            else
            {
                My_MessageBox.My_MessageBox_Message("未找到工单:" + OrderID + "的信息!请联系助理录入工单信息后重试!!!");
            }
        }