Example #1
0
        public int DoNewNode(string fk_flow, int x, int y, string nodeName, bool isLogin)
        {
            LetAdminLogin("CH", isLogin);
            if (string.IsNullOrEmpty(fk_flow))
            {
                return(0);
            }

            Flow fl = new Flow(fk_flow);

            try
            {
                BP.WF.Node nf = fl.DoNewNode(x, y);
                nf.Name = nodeName;
                nf.Save();
                return(nf.NodeID);
            }
            catch
            {
                return(0);
            }
        }