示例#1
0
        /// <summary>
        /// 保存标签条码
        /// </summary>
        /// <param name="B_Barcode"></param>
        /// <param name="B_Code"></param>
        /// <param name="B_Name"></param>
        /// <param name="B_Qty"></param>
        /// <param name="B_WorkShopCode"></param>
        private void SaveBarcode(string B_Barcode, string B_Code, string B_Name, decimal B_Qty, string B_WorkShopCode)
        {
            Mes_BarcodeEntity BarcodeEntity = new Mes_BarcodeEntity();
            Mes_BarcodeBLL    BarcodeBLL    = new Mes_BarcodeBLL();

            BarcodeEntity.B_Barcode      = B_Barcode;
            BarcodeEntity.B_Code         = B_Code;
            BarcodeEntity.B_Name         = B_Name;
            BarcodeEntity.B_Qty          = B_Qty;
            BarcodeEntity.B_WorkShopCode = B_WorkShopCode;
            BarcodeEntity.B_Ptime        = DateTime.Now;
            BarcodeEntity.B_Status       = 1;
            BarcodeBLL.SaveEntity("", BarcodeEntity);
        }
示例#2
0
        /// <summary>
        /// 保存标签条码
        /// </summary>
        /// <param name="B_Barcode"></param>
        /// <param name="B_Code"></param>
        /// <param name="B_Name"></param>
        /// <param name="B_Qty"></param>
        /// <param name="B_WorkShopCode"></param>
        private void SaveBarcode(string B_Barcode, string B_Code, string B_Name, decimal B_Qty, string B_WorkShopCode)
        {
            Mes_BarcodeEntity BarcodeEntity = new Mes_BarcodeEntity();
            Mes_BarcodeBLL    BarcodeBLL    = new Mes_BarcodeBLL();

            BarcodeEntity.B_Barcode      = B_Barcode;
            BarcodeEntity.B_Code         = B_Code;
            BarcodeEntity.B_Name         = B_Name;
            BarcodeEntity.B_Qty          = B_Qty;
            BarcodeEntity.B_WorkShopCode = B_WorkShopCode;
            DateTime dt = DateTime.Now;

            BarcodeEntity.B_Ptime  = dt;
            BarcodeEntity.B_Itime  = dt;
            BarcodeEntity.B_Otime  = dt;
            BarcodeEntity.B_Utime  = dt;
            BarcodeEntity.B_Remark = "由" + txtQty.Text + "分写而来";

            BarcodeEntity.B_Status = 1;
            BarcodeBLL.SaveEntity("", BarcodeEntity);
        }