示例#1
0
 public FMaterOnShelves()
 {
     InitializeComponent();
     MaterialOnShelvesService     = new BenQGuru.eMES.WinCeClient.MaterialOnShelves.MaterialOnShelves();
     MaterialOnShelvesService.Url = WebServiceFacade.GetWebServiceURL() + "MaterialOnShelves.asmx";
     //dataGrid1.DataSource = MaterialOnShelvesService.GetDataTable();
 }
示例#2
0
        public FIQCNGRecord(string iqcNo, string cartonNo, string dqMCode, Form parent)
        {
            if (parent == null)
            {
                throw new Exception("必须有一个父窗口!");
            }
            this.parent = parent;
            InitializeComponent();

            this.IQCNo    = iqcNo;
            this.CartonNo = cartonNo;
            this._DQMCode = dqMCode;

            _PackagingOperationsService     = new BenQGuru.eMES.WinCeClient.PackagingOperationsService.PackagingOperationsService();
            _PackagingOperationsService.Url = WebServiceFacade.GetWebServiceURL() + "PackagingOperationsService.asmx";

            DataTable dt = new DataTable();

            dt = this._PackagingOperationsService.GetIQCNGRecordDataGrid(iqcNo);
            BindDataGrid(dt);

            InitDrpNGType();
            cmbNGType.SelectedIndexChanged += new EventHandler(cmbNGType_SelectedIndexChanged);

            this.txtSN.Text       = string.Empty;
            this.txtNGQty.Text    = string.Empty;
            this.txtMemo.Text     = string.Empty;
            this.txtCartonNo.Text = cartonNo;

            KeypartsSet();
        }
示例#3
0
 //private int rows = 0;
 //private string IsKeyParts = string.Empty;
 //private WarehouseFacade _WarehouseFacade = null;
 //private string usercode = ApplicationService.Current().LoginInfo.UserCode.ToUpper();
 public FLocStorTransMP()
 {
     InitializeComponent();
     LocStorTransService     = new BenQGuru.eMES.WinCeClient.LocStorTrans.LocStorTrans();
     LocStorTransService.Url = WebServiceFacade.GetWebServiceURL() + "LocStorTrans.asmx";
     //InitDropList();
     this.rdoAllCarton.Checked = true;//整箱
 }
示例#4
0
 public FPickDone()
 {
     InitializeComponent();
     PickDoneService     = new BenQGuru.eMES.WinCeClient.PickDone.PickDone();
     PickDoneService.Url = WebServiceFacade.GetWebServiceURL() + "PickDone.asmx";
     InitDropList();
     this.rdoAllCarton.Checked = true;
 }
示例#5
0
        public FReceiveASNMP()
        {
            InitializeComponent();
            asnService     = new BenQGuru.eMES.WinCeClient.ASNReceiveService.ASNReceiveService();
            asnService.Url = WebServiceFacade.GetWebServiceURL() + "ASNReceiveService.asmx";


            BindResultComBox();
            ClearAll();
        }
示例#6
0
        public FLocStorTransDetailMP(string transNo, string dqmCode, string fromCartonno, string locationCode, string cartonno)
        {
            InitializeComponent();
            LocStorTransService     = new BenQGuru.eMES.WinCeClient.LocStorTrans.LocStorTrans();
            LocStorTransService.Url = WebServiceFacade.GetWebServiceURL() + "LocStorTrans.asmx";
            txtLocationNoEdit.Text  = transNo;
            DataTable dt = new DataTable();

            dt = LocStorTransService.LocStorTransView(transNo, dqmCode, fromCartonno, locationCode, cartonno);
            this.dataGrid1.DataSource = dt;
        }
示例#7
0
 public FStockCheck()
 {
     InitializeComponent();
     s     = new BenQGuru.eMES.WinCeClient.StockCheck.StockCheck();
     s.Url = WebServiceFacade.GetWebServiceURL() + "StockCheck.asmx";
     string[] ss = s.GetWaitStockCheckNo(ApplicationService.Current().LoginInfo.UserCode.ToUpper());
     this.cboCheckNo.Items.Add("");
     foreach (string str in ss)
     {
         this.cboCheckNo.Items.Add(str);
     }
 }
示例#8
0
        public FInOutView()
        {
            InitializeComponent();
            PickDoneService     = new BenQGuru.eMES.WinCeClient.PickDone.PickDone();
            PickDoneService.Url = WebServiceFacade.GetWebServiceURL() + "PickDone.asmx";
            DQMCode             = ApplicationService.Current().MaterInfo.DQMCode.ToUpper();
            PickNo = ApplicationService.Current().MaterInfo.PickNo.ToUpper();
            this.lblDQMCode.Text = DQMCode;

            DataTable dt1 = new DataTable();

            dt1 = PickDoneService.GetInOutRule(DQMCode, PickNo);
            //rows = dt.Rows.Count;
            //this.dataGrid1.DataSource = dt1;
            if (dt1.Rows.Count > 0)
            {
                DataGridTableStyle ts = new DataGridTableStyle();
                ts.MappingName = dt1.TableName;

                DataGridColumnStyle ColStyle1 = new DataGridTextBoxColumn();
                ColStyle1.MappingName = dt1.Columns[0].ColumnName.ToString();
                ColStyle1.HeaderText  = "首次入库时间";
                //ColStyle1.Width = 20;
                ts.GridColumnStyles.Add(ColStyle1);

                DataGridColumnStyle ColStyle3 = new DataGridTextBoxColumn();
                ColStyle3.MappingName = dt1.Columns[1].ColumnName.ToString();
                ColStyle3.HeaderText  = "货位";
                ts.GridColumnStyles.Add(ColStyle3);

                DataGridColumnStyle ColStyle4 = new DataGridTextBoxColumn();
                ColStyle4.MappingName = dt1.Columns[2].ColumnName.ToString();
                ColStyle4.HeaderText  = "箱号";
                ts.GridColumnStyles.Add(ColStyle4);

                DataGridColumnStyle ColStyle5 = new DataGridTextBoxColumn();
                ColStyle5.MappingName = dt1.Columns[3].ColumnName.ToString();
                ColStyle5.HeaderText  = "数量";
                ts.GridColumnStyles.Add(ColStyle5);

                DataGridColumnStyle ColStyle6 = new DataGridTextBoxColumn();
                ColStyle6.MappingName = dt1.Columns[4].ColumnName.ToString();
                ColStyle6.HeaderText  = "批次号";
                ts.GridColumnStyles.Add(ColStyle6);


                this.dataGrid1.TableStyles.Clear();
                this.dataGrid1.TableStyles.Add(ts);

                this.dataGrid1.DataSource = dt1;
            }
        }
示例#9
0
        //public FUploadPicture()
        //{
        //    InitializeComponent();
        //    asnService = new BenQGuru.eMES.WinCeClient.ASNReceiveService.ASNReceiveService();
        //    asnService.Url = WebServiceFacade.GetWebServiceURL() + "ASNReceiveService.asmx";


        //}

        public FUploadPicture(string stno, Form parent)
        {
            if (parent == null)
            {
                throw new Exception("必须有一个父窗口!");
            }
            this.parent = parent;
            InitializeComponent();
            this.STNo      = stno;
            asnService     = new BenQGuru.eMES.WinCeClient.ASNReceiveService.ASNReceiveService();
            asnService.Url = WebServiceFacade.GetWebServiceURL() + "ASNReceiveService.asmx";
            DataTable dt = asnService.GetDataGridDoc(stno);

            this.dataGrid1.DataSource = dt;
            this.DataCount            = dt.Rows.Count;
        }
示例#10
0
        public FStorLocTransOperations()
        {
            InitializeComponent();

            _PackagingOperationsService     = new BenQGuru.eMES.WinCeClient.PackagingOperationsService.PackagingOperationsService();
            _PackagingOperationsService.Url = WebServiceFacade.GetWebServiceURL() + "PackagingOperationsService.asmx";

            BindTransNOComBox();

            this.txtLocationCode.Text      = string.Empty;
            this.txtFromCartonNo.Text      = string.Empty;
            this.txtQTY.Text               = string.Empty;
            this.txtSN.Text                = string.Empty;
            this.txtTLocationCartonNo.Text = string.Empty;
            this.dataGrid1.DataSource      = null;
            this.lblMessage.Text           = string.Empty;
        }
示例#11
0
        public FIQCCheckResultMP()
        {
            InitializeComponent();

            _PackagingOperationsService     = new BenQGuru.eMES.WinCeClient.PackagingOperationsService.PackagingOperationsService();
            _PackagingOperationsService.Url = WebServiceFacade.GetWebServiceURL() + "PackagingOperationsService.asmx";

            //BindIQCNoComBox();

            this.txtCartonNo.Text = string.Empty;
            //this.rdbSpotCheck.Checked = true;
            //this.rdbFullCheck.Checked = true;
            this.lblAQLStandardDescInfo.Text = string.Empty;
            this.lblSamplesNum.Text          = string.Empty;
            this.lblRejectionNum.Text        = string.Empty;
            this.dataGrid1.DataSource        = null;
            this.lblMessage.Text             = string.Empty;
        }
示例#12
0
        public FSAPInvoices(FPickDone child, string pickNo, string dqmcode)
        {
            InitializeComponent();
            this.pickDone       = child;
            this.txtPickNo.Text = pickNo;


            PickDoneService     = new BenQGuru.eMES.WinCeClient.PickDone.PickDone();
            PickDoneService.Url = WebServiceFacade.GetWebServiceURL() + "PickDone.asmx";
            DataTable dt1 = new DataTable();

            dt1 = PickDoneService.GetInvoicesDetails(pickNo, dqmcode);


            DataGridTableStyle ts = new DataGridTableStyle();

            ts.MappingName = dt1.TableName;

            DataGridColumnStyle ColStyle1 = new DataGridTextBoxColumn();

            ColStyle1.MappingName = dt1.Columns[0].ColumnName.ToString();
            ColStyle1.HeaderText  = "鼎桥物料";
            //ColStyle1.Width = 20;
            ts.GridColumnStyles.Add(ColStyle1);

            DataGridColumnStyle ColStyle3 = new DataGridTextBoxColumn();

            ColStyle3.MappingName = dt1.Columns[1].ColumnName.ToString();
            ColStyle3.HeaderText  = "计划数量";
            ts.GridColumnStyles.Add(ColStyle3);

            DataGridColumnStyle ColStyle4 = new DataGridTextBoxColumn();

            ColStyle4.MappingName = dt1.Columns[2].ColumnName.ToString();
            ColStyle4.HeaderText  = "物料描述";
            ts.GridColumnStyles.Add(ColStyle4);



            this.dataGrid1.TableStyles.Clear();
            this.dataGrid1.TableStyles.Add(ts);

            this.dataGrid1.DataSource = dt1;
        }
示例#13
0
        public FPackagingOperations()
        {
            InitializeComponent();

            _PackagingOperationsService     = new BenQGuru.eMES.WinCeClient.PackagingOperationsService.PackagingOperationsService();
            _PackagingOperationsService.Url = WebServiceFacade.GetWebServiceURL() + "PackagingOperationsService.asmx";

            BindPickNOComBox();

            this.txtCartonNO.Text     = string.Empty;
            this.txtQTY.Text          = string.Empty;
            this.txtSN.Text           = string.Empty;
            this.lblPQTY.Text         = string.Empty;
            this.lblCarInvNO.Text     = string.Empty;
            this.dataGrid1.DataSource = null;
            this.lblMessage.Text      = string.Empty;

            //this.btnPickNSNMaterial.Enabled = false;
        }
示例#14
0
        public FIQCExceptionPicUpload(string iqcNo, Form parent)
        {
            if (parent == null)
            {
                throw new Exception("必须有一个父窗口!");
            }
            this.parent = parent;
            InitializeComponent();
            this.IQCNo = iqcNo;

            _PackagingOperationsService     = new BenQGuru.eMES.WinCeClient.PackagingOperationsService.PackagingOperationsService();
            _PackagingOperationsService.Url = WebServiceFacade.GetWebServiceURL() + "PackagingOperationsService.asmx";

            DataTable dt = _PackagingOperationsService.GetDataGridDoc(iqcNo);

            //this.dataGrid1.DataSource = dt;
            //this.DataCount = dt.Rows.Count;
            BindDataGrid(dt);
        }
示例#15
0
        public FPickMaterial(string pickNo, string carInvNo, string cartonNo)
        {
            InitializeComponent();

            this.PickNo   = pickNo;
            this.CarInvNo = carInvNo;
            this.CartonNo = cartonNo;

            _PackagingOperationsService     = new BenQGuru.eMES.WinCeClient.PackagingOperationsService.PackagingOperationsService();
            _PackagingOperationsService.Url = WebServiceFacade.GetWebServiceURL() + "PackagingOperationsService.asmx";

            BindTransmissionParameter();

            DataTable dt = new DataTable();

            dt = this._PackagingOperationsService.GetDataGrid1(pickNo);
            BindDataGrid(dt);

            this.lblMessage.Text = string.Empty;
        }
示例#16
0
        public FReceiveASNMP(string asn, UserControl IQCCommand)
        {
            InitializeComponent();
            asnService     = new BenQGuru.eMES.WinCeClient.ASNReceiveService.ASNReceiveService();
            asnService.Url = WebServiceFacade.GetWebServiceURL() + "ASNReceiveService.asmx";
            if (string.IsNullOrEmpty(asn))
            {
                throw new Exception(asn + "asn号码为空");
            }
            this.command    = IQCCommand;
            txtASNCode.Text = asn;
            this.Dock       = DockStyle.Fill;
            this.BackColor  = Color.White;
            BindResultComBox();

            if (!asnService.CheckASNReceiveStatus(txtASNCode.Text))
            {
                MessageBox.Show("ASN状态必须是初检!"); return;
            }

            BenQGuru.eMES.WinCeClient.ASNReceiveService.AsnSimple simple = asnService.GetAsnStatus(asn);
            foreach (string key in giveReasons.Keys)
            {
                if (key == simple.GiveReason)
                {
                    cmbGiveinResult.Text = giveReasons[key];
                }
            }


            foreach (string key in rejectReasons.Keys)
            {
                if (key == simple.RejectReason)
                {
                    cmbRejectResult.Text = rejectReasons[key];
                }
            }
            txtRejectCount.Text = simple.RejectCount.ToString();
            BindGrid(false);
        }
示例#17
0
        public FGFPickMaterial(string pickNo, string carInvNo, string cartonNo, string gfHWItemCode, string gfPackingSEQ, string suiteQTY)
        {
            InitializeComponent();

            this.PickNo       = pickNo;
            this.CarInvNo     = carInvNo;
            this.CartonNo     = cartonNo;
            this.GFHWItemCode = gfHWItemCode;
            this.GFPackingSEQ = gfPackingSEQ;
            this.SuiteQTY     = decimal.Parse(suiteQTY);

            _PackagingOperationsService     = new BenQGuru.eMES.WinCeClient.PackagingOperationsService.PackagingOperationsService();
            _PackagingOperationsService.Url = WebServiceFacade.GetWebServiceURL() + "PackagingOperationsService.asmx";

            BindTransmissionParameter();

            DataTable dt = new DataTable();

            dt = this._PackagingOperationsService.GetDataGrid3(pickNo, gfPackingSEQ, gfPackingSEQ);
            BindDataGrid(dt);

            this.lblMessage.Text = string.Empty;
        }
示例#18
0
        public FGFPackingDetail(string pickNo, string carInvNo, Form parent)
        {
            if (parent == null)
            {
                throw new Exception("必须有一个父窗口!");
            }
            this.parent = parent;
            InitializeComponent();

            this.PickNo   = pickNo;
            this.CarInvNo = carInvNo;

            _PackagingOperationsService     = new BenQGuru.eMES.WinCeClient.PackagingOperationsService.PackagingOperationsService();
            _PackagingOperationsService.Url = WebServiceFacade.GetWebServiceURL() + "PackagingOperationsService.asmx";

            BindTransmissionParameter();

            DataTable dt = new DataTable();

            dt = this._PackagingOperationsService.GetDataGrid4(pickNo);
            BindDataGrid(dt);

            this.lblMessage.Text = string.Empty;
        }
示例#19
0
        public FPickedView()
        {
            //if (parent == null)
            //    throw new Exception("必须有一个父窗口!");
            //this.parent = parent;
            InitializeComponent();
            PickDoneService     = new BenQGuru.eMES.WinCeClient.PickDone.PickDone();
            PickDoneService.Url = WebServiceFacade.GetWebServiceURL() + "PickDone.asmx";
            DQMCode             = ApplicationService.Current().MaterInfo.DQMCode.ToUpper();
            PickNo = ApplicationService.Current().MaterInfo.PickNo.ToUpper();
            this.lblDQMCode.Text = DQMCode;

            DataTable dt1 = new DataTable();

            dt1 = PickDoneService.PickedView(PickNo, DQMCode);
            //rows = dt.Rows.Count;
            //this.dataGrid1.DataSource = dt1;
            if (dt1.Rows.Count > 0)
            {
                DataGridTableStyle ts = new DataGridTableStyle();
                ts.MappingName = dt1.TableName;

                DataGridColumnStyle ColStyle1 = new DataGridTextBoxColumn();
                ColStyle1.MappingName = dt1.Columns[0].ColumnName.ToString();
                ColStyle1.HeaderText  = "箱号";
                //ColStyle1.Width = 20;
                ts.GridColumnStyles.Add(ColStyle1);



                DataGridColumnStyle ColStyle5 = new DataGridTextBoxColumn();
                ColStyle5.MappingName = dt1.Columns[1].ColumnName.ToString();
                ColStyle5.HeaderText  = "SN";
                ts.GridColumnStyles.Add(ColStyle5);


                DataGridColumnStyle ColStyle6 = new DataGridTextBoxColumn();
                ColStyle6.MappingName = dt1.Columns[2].ColumnName.ToString();
                ColStyle6.HeaderText  = "拣料人";
                ts.GridColumnStyles.Add(ColStyle6);

                DataGridColumnStyle ColStyle7 = new DataGridTextBoxColumn();
                ColStyle7.MappingName = dt1.Columns[3].ColumnName.ToString();
                ColStyle7.HeaderText  = "日期";
                ts.GridColumnStyles.Add(ColStyle7);


                DataGridColumnStyle ColStyle3 = new DataGridTextBoxColumn();
                ColStyle3.MappingName = dt1.Columns[4].ColumnName.ToString();
                ColStyle3.HeaderText  = "批次号";
                ts.GridColumnStyles.Add(ColStyle3);

                DataGridColumnStyle ColStyle4 = new DataGridTextBoxColumn();
                ColStyle4.MappingName = dt1.Columns[5].ColumnName.ToString();
                ColStyle4.HeaderText  = "货位";
                ts.GridColumnStyles.Add(ColStyle4);

                this.dataGrid1.TableStyles.Clear();
                this.dataGrid1.TableStyles.Add(ts);

                this.dataGrid1.DataSource = dt1;
            }
        }
示例#20
0
 public UcFormTest()
 {
     InitializeComponent();
     testService     = new BenQGuru.eMES.WinCeClient.TestService.TestService();
     testService.Url = WebServiceFacade.GetWebServiceURL() + "TestService.asmx";
 }
示例#21
0
 public FSMTReturn()
 {
     InitializeComponent();
     smtLoadService     = new BenQGuru.eMES.WinCeClient.SMTLoadService.SMTLoadService();
     smtLoadService.Url = WebServiceFacade.GetWebServiceURL() + "SMTLoadService.asmx";
 }
示例#22
0
 static stub()
 {
     command     = new BenQGuru.eMES.WinCeClient.IQCCommand.IQCCommand();
     command.Url = WebServiceFacade.GetWebServiceURL() + "IQCCommand.asmx";
 }
示例#23
0
 public FMaterialOnShelves()
 {
     InitializeComponent();
     MaterialOnShelvesService     = new BenQGuru.eMES.WinCeClient.MaterialOnShelves.MaterialOnShelves();
     MaterialOnShelvesService.Url = WebServiceFacade.GetWebServiceURL() + "MaterialOnShelves.asmx";
 }
示例#24
0
 public FCollectBasketGood()
 {
     InitializeComponent();
     CollectGood     = new BenQGuru.eMES.WinCeClient.CollectGoodService.CollectGoodService();
     CollectGood.Url = WebServiceFacade.GetWebServiceURL() + "CollectGoodService.asmx";
 }