Example #1
0
        public void Create(ERP_M001_Material_Supp ERP_M001_Material_Supp)
        {
            ERP_M001_Material_Supp.CreateDt = DateTime.Now;
            tb_Sys_User tempUser = appCacheService.GetItem("user") as tb_Sys_User;

            ERP_M001_Material_Supp.CreateUser = tempUser.UserName;
            ERP_M001_Material_Supp.Validate();
            this.ERP_M001_Material_SuppRepository.Add(ERP_M001_Material_Supp);
            this.runtimeService.Commit();
        }
Example #2
0
        public void Update(ERP_M001_Material_Supp ERP_M001_Material_Supp)
        {
            ERP_M001_Material_Supp.ModifyDt = DateTime.Now;
            tb_Sys_User tempUser = appCacheService.GetItem("user") as tb_Sys_User;

            ERP_M001_Material_Supp.ModifyUser = tempUser.UserName;
            ERP_M001_Material_Supp.Validate();
            var existstb_Sys_Menu = this.GetById(ERP_M001_Material_Supp.Id);

            this.ERP_M001_Material_SuppRepository.SetValues(ERP_M001_Material_Supp, existstb_Sys_Menu);
            this.runtimeService.Commit();
        }