Пример #1
0
        /// <summary>
        /// 获得实体
        /// </summary>
        /// <returns></returns>
        private ProductCheck EntityGet()
        {
            ProductCheck entity = new ProductCheck();

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

            entity.FormNo     = txtFormNo.Text.Trim();
            entity.MakeOPID   = FParamConfig.LoginID;
            entity.MakeOPName = FParamConfig.LoginName;
            entity.MakeDate   = DateTime.Now.Date;
            entity.CheckOPID  = SysConvert.ToString(drpCheckOPID.EditValue);
            entity.ShopID     = SysConvert.ToString(drpShopID.EditValue);
            entity.FormDate   = txtFormDate.DateTime.Date;
            entity.CheOPID    = SysConvert.ToString(drpCheckOPID.EditValue);
            entity.BuyFormNo  = txtBuyFormNo.Text.Trim();
            entity.VendorID   = SysConvert.ToString(drpVendorID.EditValue);
            entity.Remark     = txtRemark.Text.Trim();


            return(entity);
        }
Пример #2
0
        /// <summary>
        /// 设置
        /// </summary>
        public override void EntitySet()
        {
            ProductCheck entity = new ProductCheck();

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

            txtFormNo.Text         = entity.FormNo.ToString();
            drpShopID.EditValue    = entity.ShopID;
            txtFormDate.DateTime   = entity.FormDate;
            drpCheckOPID.EditValue = entity.CheckOPID;
            txtBuyFormNo.Text      = entity.BuyFormNo.ToString();
            drpVendorID.EditValue  = entity.VendorID;
            txtRemark.Text         = entity.Remark.ToString();
            HTDataSubmitFlag       = entity.SubmitFlag;
            HTDataDelFlag          = entity.DelFlag;
            if (!findFlag)
            {
            }

            BindGridDts();
        }