예제 #1
0
        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();
        }
예제 #2
0
        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();
        }
예제 #3
0
        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();
        }
예제 #4
0
        /// <summary>
        /// 制程改变,筛选制程参数
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void eRPM001ProductProcessFlowBindingSource_CurrentChanged(object sender, EventArgs e)
        {
            ERP_M001_Product_ProcessFlow PF = this.eRPM001ProductProcessFlowBindingSource.Current as ERP_M001_Product_ProcessFlow;
            string filterSql = string.Format("[ProcessCode]= '{0}' ", "999999");

            if (PF != null)
            {
                filterSql = string.Format("[ProcessCode]= '{0}'", PF.ProcessCode);
            }
            this.gridProdInfo.ActiveFilterString = filterSql;
        }
예제 #5
0
        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();
        }