public void Create(ERP_M001_Product_CustPack ERP_M001_Product_CustPack)
        {
            ERP_M001_Product_CustPack.CreateDt = DateTime.Now;
            tb_Sys_User tempUser = appCacheService.GetItem("user") as tb_Sys_User;

            ERP_M001_Product_CustPack.CreateUser = tempUser.UserName;
            ERP_M001_Product_CustPack.Validate();
            this.ERP_M001_Product_CustPackRepository.Add(ERP_M001_Product_CustPack);
            this.runtimeService.Commit();
        }
        public void Update(ERP_M001_Product_CustPack ERP_M001_Product_CustPack)
        {
            ERP_M001_Product_CustPack.ModifyDt = DateTime.Now;
            tb_Sys_User tempUser = appCacheService.GetItem("user") as tb_Sys_User;

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

            this.ERP_M001_Product_CustPackRepository.SetValues(ERP_M001_Product_CustPack, existstb_Sys_Menu);
            this.runtimeService.Commit();
        }
Example #3
0
 //private IProductCustPackService productCustPackService;
 public PrudtctCustPackEditForm(ERP_M001_Product_CustPack tempData)
 {
     InitializeComponent();
     this.eRPM001ProductCustPackBindingSource.DataSource = tempData;
 }