public void Update(ERP_M001_Product_ProcessFlow ERP_M001_Product_ProcessFlow)
        {
            ERP_M001_Product_ProcessFlow.Validate();
            var existstb_Sys_Menu = this.GetById(ERP_M001_Product_ProcessFlow.Id);

            this.ERP_M001_Product_ProcessFlowRepository.SetValues(ERP_M001_Product_ProcessFlow, existstb_Sys_Menu);
            this.runtimeService.Commit();
        }
        public void Create(ERP_M001_Product_ProcessFlow ERP_M001_Product_ProcessFlow)
        {
            tb_Sys_User tempUser = appCacheService.GetItem("user") as tb_Sys_User;

            ERP_M001_Product_ProcessFlow.CompCode = tempUser.CompCode;
            ERP_M001_Product_ProcessFlow.Validate();
            this.ERP_M001_Product_ProcessFlowRepository.Add(ERP_M001_Product_ProcessFlow);
            this.runtimeService.Commit();
        }
        public void Create(ERP_M001_Product_ProcessFlow ERP_M001_Product_ProcessFlow)
        {
            ERP_M001_Product_ProcessFlow.CreateDt = DateTime.Now;
            tb_Sys_User tempUser = appCacheService.GetItem("user") as tb_Sys_User;

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

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

            this.ERP_M001_Product_ProcessFlowRepository.SetValues(ERP_M001_Product_ProcessFlow, existstb_Sys_Menu);
            this.runtimeService.Commit();
        }