Exemplo n.º 1
0
        /// <summary>
        /// 获得实体
        /// </summary>
        /// <returns></returns>
        private QS EntityGet()
        {
            QS entity = new QS();

            entity.ID = HTDataID;
            entity.SelectByID();
            entity.VendorID    = SysConvert.ToString(drpVendorID.EditValue);
            entity.ItemCode    = txtItemCode.Text.Trim();
            entity.GoodsCode   = txtGoodsCode.Text.Trim();
            entity.ColorNum    = txtColorNum.Text.Trim();
            entity.ColorName   = txtColorName.Text.Trim();
            entity.Qty         = SysConvert.ToDecimal(txtQty.Text.Trim());
            entity.SinglePrice = SysConvert.ToDecimal(txtSinglePrice.Text.Trim());
            entity.Amount      = SysConvert.ToDecimal(txtAmount.Text.Trim());
            entity.Remark      = txtRemark.Text.Trim();
            entity.FormDate    = txtFormDate.DateTime;
            entity.OrderFormNo = txtOrderFormNo.Text.Trim();
            entity.Remark2     = txtRemark2.Text.Trim();
            entity.Unit        = SysConvert.ToString(drpUnit.EditValue);
            return(entity);
        }
Exemplo n.º 2
0
        /// <summary>
        /// 设置
        /// </summary>
        public override void EntitySet()
        {
            QS entity = new QS();

            entity.ID = HTDataID;
            bool findFlag = entity.SelectByID();

            drpVendorID.EditValue = entity.VendorID;
            txtFormDate.DateTime  = entity.FormDate;
            txtItemCode.Text      = entity.ItemCode.ToString();
            txtGoodsCode.Text     = entity.GoodsCode.ToString();
            txtColorNum.Text      = entity.ColorNum.ToString();
            txtColorName.Text     = entity.ColorName.ToString();
            txtQty.Text           = entity.Qty.ToString();
            txtSinglePrice.Text   = entity.SinglePrice.ToString();
            txtAmount.Text        = entity.Amount.ToString();
            txtRemark.Text        = entity.Remark.ToString();
            txtOrderFormNo.Text   = entity.OrderFormNo.ToString();
            txtRemark2.Text       = entity.Remark2;
            drpUnit.EditValue     = entity.Unit;
            if (!findFlag)
            {
            }
        }