コード例 #1
0
        public void Create(WMS_MatConsume_ActMat WMS_MatConsume_ActMat)
        {
            WMS_MatConsume_ActMat.CreatDt = DateTime.Now;
            tb_Sys_User tempUser = appCacheService.GetItem("user") as tb_Sys_User;

            WMS_MatConsume_ActMat.CreateUser = tempUser.UserName;
            WMS_MatConsume_ActMat.Validate();
            this.WMS_MatConsume_ActMatRepository.Add(WMS_MatConsume_ActMat);
            this.runtimeService.Commit();
        }
コード例 #2
0
        private void gridMatConSum_FocusedRowChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedRowChangedEventArgs e)
        {
            WMS_MatConsume_ActMat temp = wMSMatConsumeActMatBindingSource.Current as WMS_MatConsume_ActMat;

            if (temp != null)
            {
                wMSMatConsumeActMatDetailBindingSource.DataSource     = matconsumeDetailService.GetQuery().Where(a => a.StampingNo == temp.StampingNo).ToList();
                wMSMatConsumeActMatMouthCheckBindingSource.DataSource = matconsumeMouthService.GetQuery().Where(a => a.SuppCode == temp.StampingNo).ToList();
            }
        }
コード例 #3
0
        public void Update(WMS_MatConsume_ActMat WMS_MatConsume_ActMat)
        {
            WMS_MatConsume_ActMat.ModifyDt = DateTime.Now;
            tb_Sys_User tempUser = appCacheService.GetItem("user") as tb_Sys_User;

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

            this.WMS_MatConsume_ActMatRepository.SetValues(WMS_MatConsume_ActMat, existstb_Sys_Menu);
            this.runtimeService.Commit();
        }