Example #1
0
        public static void doCreateInstance(clsFaim3 v_faim3, DAL_CommData v_dao_comm, string vflowName)
        {
            string _fn  = F_Const.path_flowDLL + vflowName + ".dll";
            string _ns  = "F_CaseWhile";
            object _obj = null;

            if (vflowName == "clsWhile485" || vflowName == "clsWhile74x" || vflowName == "clsWhileTcp")
            {
                // 命名空间 / 类名 / faim3 / dao / new(形参:用户类名)
                _obj = doCreateInstance_byName_Para <object>(
                    _ns,
                    vflowName,
                    v_faim3,
                    v_dao_comm,
                    vflowName   //
                    );
            }
            else
            {
                #region // flow . do while
                // 命名空间 / 类名 / faim3 / dao / new(形参:用户类名)
                _obj = doCreateInstance_byName_Para <object>(
                    _ns,
                    "clsFlowWhile",
                    v_faim3,
                    v_dao_comm,
                    vflowName  // xxx
                    );
                if (_obj == null)
                {
                    FACC.F_Log.Debug_1("clsTool_ASM", string.Format("!!01 未创建对象 :{0}", vflowName));
                    return;
                }
                FACC.F_Log.Debug_1("clsTool_ASM", string.Format("加入流程:{0}", vflowName));
                // PartA
                IDAL_Temp_Part _Idal = null;
                _obj = doCreateInstance_byFile <object>(
                    _fn,
                    vflowName,
                    "PartA"
                    );
                _Idal = _obj as IDAL_Temp_Part;
                _Idal.do_New(v_faim3, v_dao_comm);
                // PartB
                FACC.F_Log.Debug_1("clsTool_ASM", string.Format("加入步骤: {0}_PartA", vflowName));
                _obj = doCreateInstance_byFile <object>(
                    _fn, vflowName,
                    "PartB"
                    );
                _Idal = _obj as IDAL_Temp_Part;
                _Idal.do_New(v_faim3, v_dao_comm);
                #endregion }
            }
            FACC.F_Log.Debug_1("clsTool_ASM", string.Format("按钮: 加入步骤: {0}_PartB", vflowName));
        }
Example #2
0
        static void doCreateInstance(clsFaim3 vFaim3, string vFlowName)
        {
            string _fn  = F_Const.path_flowDLL + vFlowName + ".dll";
            object _obj = doCreateInstance <object>(
                _fn, "F_FlowTemp", "clsTempSub",
                vFaim3,
                vFlowName
                );

            if (_obj == null)
            {
                return;
            }
            FACC.F_Log.Debug_1("clsTool_ASM", string.Format("加入流程:{0}", vFlowName));

            IDAL_Temp_Part _Idal = null;

            _obj = doCreateInstance <object>(
                _fn, vFlowName,
                "PartA",
                vFaim3
                );
            _Idal = _obj as IDAL_Temp_Part;
            _Idal.do_New(vFaim3);
            FACC.F_Log.Debug_1("clsTool_ASM", string.Format("加入步骤: {0}_PartA", vFlowName));

            _obj = doCreateInstance <object>(
                _fn, vFlowName,
                "PartB",
                vFaim3
                );
            _Idal = _obj as IDAL_Temp_Part;
            _Idal.do_New(vFaim3);

            FACC.F_Log.Debug_1("clsTool_ASM", string.Format("按钮: 加入步骤: {0}_PartB", vFlowName));
        }