Esempio n. 1
0
        public void Update(MES_M501_JobTxProdInfo MES_M501_JobTxProdInfo)
        {
            MES_M501_JobTxProdInfo.Validate();
            var existstb_Sys_Menu = this.GetByID(MES_M501_JobTxProdInfo.Id);

            this.MES_M501_JobTxProdInfoRepository.SetValues(MES_M501_JobTxProdInfo, existstb_Sys_Menu);
            this.runtimeService.Commit();
        }
Esempio n. 2
0
        public void Create(MES_M501_JobTxProdInfo MES_M501_JobTxProdInfo)
        {
            tb_Sys_User tempUser = appCacheService.GetItem("user") as tb_Sys_User;

            MES_M501_JobTxProdInfo.CompCode = tempUser.CompCode;
            MES_M501_JobTxProdInfo.Validate();
            this.MES_M501_JobTxProdInfoRepository.Add(MES_M501_JobTxProdInfo);
            this.runtimeService.Commit();
        }