예제 #1
0
파일: Utils.cs 프로젝트: kkwkk/ybyzt
    /// <summary>
    /// 新增销售单据日志
    /// </summary>
    /// <param name="ReceiptID">单据ID</param>
    /// <param name="ReceiptNo">单据号</param>
    /// <param name="ReceiptType">单据类型 1:进货单 2:出库单 3:到货单</param>
    /// <param name="ReceiptState">单据操作状态</param>
    public static void AddOrderLog(int ReceiptID, string ReceiptNo, int ReceiptType, int ReceiptState)
    {
        try
        {
            LoginModel AdminUserModel = null;
            if (HttpContext.Current.Session != null)
            {
                AdminUserModel = HttpContext.Current.Session["UserModel"] as LoginModel; //得到登录LoginId
            }

            Hi.Model.DIS_OrderLog OrderLogModel = new Hi.Model.DIS_OrderLog();

            OrderLogModel.ReceiptID    = ReceiptID;
            OrderLogModel.ReceiptNo    = ReceiptNo;
            OrderLogModel.ReceiptType  = ReceiptType;
            OrderLogModel.ReceiptState = ReceiptState;
            OrderLogModel.CreateUserID = AdminUserModel.UserID;
            OrderLogModel.CreateDate   = DateTime.Now;
            OrderLogModel.ts           = DateTime.Now;

            new Hi.BLL.DIS_OrderLog().Add(OrderLogModel);
        }
        catch (Exception ex)
        {
            Console.WriteLine(ex.Message);
        }
    }
예제 #2
0
파일: DIS_OrderLog.cs 프로젝트: kkwkk/ybyzt
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public bool Update(Hi.Model.DIS_OrderLog model)
 {
     return(dal.Update(model));
 }
예제 #3
0
파일: DIS_OrderLog.cs 프로젝트: kkwkk/ybyzt
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public int Add(Hi.Model.DIS_OrderLog model)
 {
     return(dal.Add(model));
 }