示例#1
0
        /// <summary>
        /// 
        /// </summary>
        private void AddFL()
        {
            Right rt = App.Default.GetLoginOperatorRight();
            if (!rt.CanActivateForFL(Xdgk.Common.ADEStatus.Add, FLStatus.Created))
            {
                NUnit.UiKit.UserMessage.DisplayFailure(Strings.CannotCreateMT);
                return;
            }

            tblFlow fl = FlowFactory.Create();

            frmFlow f = new frmFlow();
            f.FL = fl;

            if (f.ShowDialog() == DialogResult.OK)
            {
            }
            this.Fill();
        }
示例#2
0
        /// <summary>
        /// 
        /// </summary>
        private void ViewFL()
        {
            tblFlow fl = this.GetSelectedFlow();
            if (!CheckSelectedFlow(fl))
            {
                return;
            }
            var db = DBFactory .GetBxdbDataContext ();

            var v = db.tblFlow.First(c => c.fl_id == fl.fl_id);

            frmFlow f = new frmFlow();
            f.FL = v;
            if (f.ShowDialog() == DialogResult.OK)
            {
                Fill();
            }
        }