Exemplo n.º 1
0
        public void LoadData(ReceiveHeaderViewEntity header)
        {
            this._header = header;

            lvData.Items.Clear();

            lvData.BeginUpdate();

            ListViewItem item;

            for (int i = 0; i < this._header.Detail.Length; i++)
            {
                item      = new ListViewItem();
                item.Text = this._header.Detail[i].Outerid;
                //item.SubItems.Add(this._header.Detail[i].Outerid);
                item.SubItems.Add(this._header.Detail[i].Cbarcode);
                item.SubItems.Add(this._header.Detail[i].GName);
                item.SubItems.Add(this._header.Detail[i].Spec);
                item.SubItems.Add(this._header.Detail[i].Waitamount);
                item.SubItems.Add(this._header.Detail[i].Waittxj);
                item.SubItems.Add(this._header.Detail[i].Planamount);
                item.SubItems.Add(this._header.Detail[i].Plantxj);
                item.SubItems.Add(this._header.Detail[i].Did);

                lvData.Items.Add(item);
            }

            lvData.EndUpdate();
        }
Exemplo n.º 2
0
        /// <summary>
        /// 具体检查收货单号的方法
        /// </summary>
        private void CheckReceiveNo()
        {
            string ReceiveNo = txtReceiveNo.Text.Trim();

            if (ReceiveNo == "" || ReceiveNo == null)
            {
                return;
            }

            ReceiveHeaderViewEntity entity = new ReceiveHeaderViewEntity(base.UserView);

            entity.Instockcode = ReceiveNo;

            entity = new ReceiveBP().GetReceiveDetail(entity, this.RF.RemoteServer);

            if (entity != null)
            {
                if (entity.Success)
                {
                    //跳转新页面 详细信息
                    base.RF.ShowReceive2(entity);
                    base.RF.HideReceive();
                }
                else
                {
                    base.ShowMessage(entity.Message, false, EnMessageType.A, false);
                }
            }
            else
            {
                base.ShowMessage("通讯错误,请重新登录!", false, EnMessageType.A, false);
            }
        }
Exemplo n.º 3
0
        private string GetReceiveDetail(string receive)
        {
            ReceiveHeaderViewEntity param = SerializeHelper.Deserialize <ReceiveHeaderViewEntity>(receive);

            ReceiveHeaderViewEntity entity = new ReceiveBP().GetReceiveDetail(param);

            string result = SerializeHelper.Serialize(entity);

            return(result);
        }
Exemplo n.º 4
0
 /// <summary>
 /// 显示二级收货框
 /// </summary>
 /// <param name="message"></param>
 /// <param name="choise"></param>
 public void ShowReceive2(ReceiveHeaderViewEntity entity)
 {
     if (this.Controls.IndexOf(this.ucReceive2) < 0)
     {
         this.ucReceive2          = new SCM.RF.Client.Tool.Controls.Receive.UCReceiveDetail_2(this);
         this.ucReceive2.Location = new System.Drawing.Point(10, 30);
         this.ucReceive2.Name     = "ucReceive2";
         this.ucReceive2.Size     = new System.Drawing.Size(300, 260);
         this.ucReceive2.TabIndex = 1;
         this.ucReceive2.TabStop  = false;
         this.Controls.Add(this.ucReceive2);
     }
     this.ucReceive2.Visible = true;
     this.ucReceive2.BringToFront();
     this.ucReceive2.Init(EnHookType.D2);
     this.ucReceive2.Init(this.RemoteServer, this.UserViewEntity);
     this.ucReceive2.Init();
     this.ucReceive2.LoadData(entity);
 }
Exemplo n.º 5
0
        public ReceiveHeaderViewEntity GetReceiveDetail(ReceiveHeaderViewEntity entity, RemoteServer remote)
        {
            entity = remote.Commond <ReceiveHeaderViewEntity>(entity, "1001");

            return(entity);
        }
Exemplo n.º 6
0
        public ReceiveHeaderViewEntity GetReceiveDetail(ReceiveHeaderViewEntity entity)
        {
            entity = ReceiveDA.GetReceiveDetail(ref entity);

            return(entity);
        }
Exemplo n.º 7
0
        public static ReceiveHeaderViewEntity GetReceiveDetail(ref ReceiveHeaderViewEntity entity)
        {
            SCM.RF.Server.Adapt.IWebWarehouseServiceQYBService service = new Adapt.IWebWarehouseServiceQYBService();

            string param = @"<?xml version='1.0' encoding='UTF-8'?>
                                <rt>
                                <tid>" + entity.TID + @"</tid>
                                <uname>" + entity.UName + @"</uname>
                                <pwd>" + entity.PWD + @"</pwd>
                                <cid>" + entity.CID + @"</cid>
                                <warehouseid>" + entity.WareHouseId + @"</warehouseid>
                                <fromcode>" + entity.Instockcode + @"</fromcode>
                            </rt>";

            string xmlstring = service.getInstockDetail(param);

            XmlDocument doc = new XmlDocument();

            doc.LoadXml(xmlstring);

            /*
             * <?xml version="1.0" encoding="UTF-8"?>
             * <rt>
             * <tid>20160113105010820</tid>
             * <warehouseid>47a7377d4a9e42e3a665af0894946e21</warehouseid>
             * <rc>0000</rc>
             * <rm>�ɹ�</rm>
             * <instockdetails>
             *  <instockdetail>
             *    <outerid>MJ4-01A</outerid>
             *    <pres>��</pres>
             *    <cbarcode>MJ4-01A</cbarcode>
             *    <planamount>5</planamount>
             *    <waitamount>5</waitamount>
             *    <waittxj>0/0/5</waittxj>
             *    <plantxj>0/0/5</plantxj>
             *    <param1></param1>
             *    <param2></param2>
             *    <param3></param3>
             *    <param4></param4>
             *    <param5></param5>
             *    <param6></param6>
             *    <param7></param7>
             *    <param8></param8>
             *    <gname>���׷�������ħ��4�� �����۾� 3D������ʵ�۾�VR�۾��ֻ�ͷ�� ��׿��</gname>
             *    <goodsid>53d500e9df8b4ec1a69808d09c72b378</goodsid>
             *    <stockstatus>ZC</stockstatus>
             *    <inserial>false</inserial>
             *    <instockid>e2358a9891144cdc92da9692ec26dcf0</instockid>
             *    <instockdetailid>525f6676f6c443d3ae9866f5e0d9350d</instockdetailid>
             *    <instockrule>7607ad5822ff485bb7e272810e6a74e2</instockrule>
             *  </instockdetail>
             * </instockdetails>
             * </rt>
             */

            string returncode = doc.SelectSingleNode("rt/rc").InnerText;

            if (returncode == "0000")
            {
                XmlNodeList detail = doc.SelectNodes("rt/instockdetails/instockdetail");

                entity.Detail = new ReceiveDetailViewEntity[detail.Count];

                ReceiveDetailViewEntity detailitem;

                for (int i = 0; i < detail.Count; i++)
                {
                    detailitem = new ReceiveDetailViewEntity();

                    detailitem = new SCM.RF.Server.Utility.XmlHelper <ReceiveDetailViewEntity>().GetEntityByNode(detailitem, detail[i]);

                    entity.Detail[i] = detailitem;
                }

                entity.Success = true;
            }
            else
            {
                entity.Success = false;
                entity.Message = doc.SelectSingleNode("rt/rm").InnerText;
            }

            return(entity);
        }