コード例 #1
0
        /// <summary>
        /// 弹出审批相关的single界面
        /// 张镇波 2013-5-21
        /// </summary>
        /// <param name="amID"></param>
        /// <returns></returns>
        public static BaseSingle GetSingleApprove(int amID)
        {
            try
            {
                string    sql1 = "SELECT amValue,fmID FROM dbo.B_ApproveMain AS bam WHERE amID = " + amID.ToString();
                DataTable dt1  = new DataTable();
                dt1 = YKDataClass.getDataTable(sql1);
                int keyValue = Convert.ToInt32(dt1.Rows[0]["amValue"].ToString());
                int fmID     = Convert.ToInt32(dt1.Rows[0]["fmID"].ToString());

                string sql2 = "SELECT bal.alSingle,alClass FROM dbo.B_FlowMain AS bfm "
                              + " INNER JOIN dbo.B_AuthorityList AS bal ON bal.alName = bfm.mName WHERE fmID = " + fmID.ToString();
                DataTable dt2 = new DataTable();
                dt2 = YKDataClass.getDataTable(sql2);
                string alsingle = dt2.Rows[0]["alSingle"].ToString();
                string alClass  = dt2.Rows[0]["alClass"].ToString();

                object[] obj = new object[1] {
                    keyValue
                };
                Assembly   _assembly = Assembly.LoadFile(System.IO.Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "\\" + alClass + ".dll");
                BaseSingle frm       = _assembly.CreateInstance(alsingle, true, BindingFlags.CreateInstance, null, obj, null, null) as BaseSingle;
                return(frm);
            }
            catch { return(null); }
        }
コード例 #2
0
 /// <summary>
 /// 修改密码
 /// 鄢国平 2012年10月19日 08:58:52
 /// </summary>
 /// <returns></returns>
 public static BaseSingle GetUpdatePasswordForm()
 {
     try
     {
         //通过反射得到实例
         Assembly   _assembly = Assembly.LoadFile(System.IO.Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "\\FZYK.WinUI.SystemManage.dll");
         BaseSingle form      = _assembly.CreateInstance("FZYK.WinUI.SystemManage.FrmUpdatePassword") as BaseSingle;
         return(form);
     }
     catch (Exception ex) { throw ex; }
 }
コード例 #3
0
 ///CXP 2012-10-08
 /// <summary>
 /// 得到加工进度界面
 /// </summary>
 /// <param name="ptid">下达单ptID</param>
 /// <returns></returns>
 public static BaseSingle GetProcessesDetailByPTID(int ptID)
 {
     try
     {
         object[] args = new object[1];
         args[0] = ptID;
         //通过反射得到实例
         Assembly   _assembly = Assembly.LoadFile(System.IO.Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "\\FZYK.WinUI.Produce.dll");
         BaseSingle form      = _assembly.CreateInstance("FZYK.WinUI.Produce.StatProduce.FrmProcessesDetail", false, BindingFlags.CreateInstance, null, args, null, null) as BaseSingle;
         return(form);
     }
     catch (Exception ex) { throw ex; }
 }
コード例 #4
0
 /// <summary>
 /// 生成复检送检单
 /// 张镇波 2013-7-18
 /// </summary>
 /// <param name="tag"></param>
 /// <returns></returns>
 public static BaseSingle GetTestApply(string oldIDList, string tag, string tag1)
 {
     try
     {
         object[] obj = new object[3] {
             oldIDList, tag, tag1
         };
         Assembly   _assembly = Assembly.LoadFile(System.IO.Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "\\FZYK.WinUI.Warehouse.dll");
         BaseSingle frm       = _assembly.CreateInstance("FZYK.WinUI.Warehouse.FrmTestApply", true, BindingFlags.CreateInstance, null, obj, null, null) as BaseSingle;
         return(frm);
     }
     catch { return(null); }
 }
コード例 #5
0
 /// <summary>
 /// 生成领料单
 /// </summary>
 /// <returns></returns>
 public static BaseSingle GetStockPickSingle(string tag, string tag1, int dsID, string flag)
 {
     try
     {
         object[] obj = new object[4] {
             tag, tag1, dsID, flag
         };
         Assembly   _assembly = Assembly.LoadFile(System.IO.Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "\\FZYK.WinUI.Warehouse.dll");
         BaseSingle frm       = _assembly.CreateInstance("FZYK.WinUI.Warehouse.FrmStockPick", true, BindingFlags.CreateInstance, null, obj, null, null) as BaseSingle;
         return(frm);
     }
     catch (Exception ex) { throw ex; }
 }
コード例 #6
0
 /// <summary>
 /// 按明细ID串弹出不合格审理单
 /// </summary>
 /// <returns></returns>
 public static BaseSingle GetProduceReject(string codeList)
 {
     try
     {
         object[] obj = new object[1] {
             codeList
         };
         Assembly   _assembly = Assembly.LoadFile(System.IO.Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "\\FZYK.WinUI.Quality.dll");
         BaseSingle frm       = _assembly.CreateInstance("FZYK.WinUI.Quality.FrmProduceReject", true, BindingFlags.CreateInstance, null, obj, null, null) as BaseSingle;
         return(frm);
     }
     catch (Exception ex) { throw ex; }
 }
コード例 #7
0
 /// <summary>
 /// 弹出审批单 2013-4-11 张
 /// </summary>
 /// <returns></returns>
 public static BaseSingle GetApproveDetail(int amID)
 {
     try
     {
         object[] obj = new object[1] {
             amID
         };
         Assembly   _assembly = Assembly.LoadFile(System.IO.Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "\\FZYK.WinUI.BaseSet.dll");
         BaseSingle frm       = _assembly.CreateInstance("FZYK.WinUI.BaseSet.FrmApproveDetail", true, BindingFlags.CreateInstance, null, obj, null, null) as BaseSingle;
         return(frm);
     }
     catch (Exception ex) { throw ex; }
 }
コード例 #8
0
 /// <summary>
 /// 生成领料单
 /// </summary>
 /// <returns></returns>
 public static BaseSingle GetPickingPlanAll(int ptID)
 {
     try
     {
         object[] obj = new object[1] {
             ptID
         };
         Assembly   _assembly = Assembly.LoadFile(System.IO.Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "\\FZYK.WinUI.Warehouse.dll");
         BaseSingle frm       = _assembly.CreateInstance("FZYK.WinUI.Warehouse.FrmPickingPlanAll", true, BindingFlags.CreateInstance, null, obj, null, null) as BaseSingle;
         return(frm);
     }
     catch (Exception ex) { throw ex; }
 }
コード例 #9
0
 /// <summary>
 /// 采购计划(领料单生成)
 /// 2013-12-2 新增 张镇波
 /// </summary>
 /// <returns></returns>
 public static BaseSingle GetPurchaseApply(string sodIDList, string tag, string tag1)
 {
     try
     {
         object[] obj = new object[3] {
             sodIDList, tag, tag1
         };
         Assembly   _assembly = Assembly.LoadFile(System.IO.Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "\\FZYK.WinUI.Purchase.dll");
         BaseSingle frm       = _assembly.CreateInstance("FZYK.WinUI.Purchase.FrmPurchaseApply", true, BindingFlags.CreateInstance, null, obj, null, null) as BaseSingle;
         return(frm);
     }
     catch (Exception ex) { throw; }
 }
コード例 #10
0
 /// <summary>
 /// 进入补件Single界面
 /// 鄢国平 2013年2月1日 11:22:16
 /// </summary>
 /// <returns></returns>
 public static BaseSingle GetPatchSingle(DataTable dt)
 {
     try
     {
         object[] args = new object[1];
         args[0] = dt;
         //通过反射得到实例
         Assembly   _assembly = Assembly.LoadFile(System.IO.Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "\\FZYK.WinUI.Sale.dll");
         BaseSingle form      = _assembly.CreateInstance("FZYK.WinUI.Sale.FrmPatchSingle", false, BindingFlags.CreateInstance, null, args, null, null) as BaseSingle;
         return(form);
     }
     catch (Exception ex) { throw ex; }
 }
コード例 #11
0
 /// <summary>
 /// 获取腿长配段基础设置界面
 /// 添加:天生  2012年12月13日 09:39:47
 /// </summary>
 /// <returns></returns>
 public static BaseSingle GetScdLegSectSetting(int cID, string project)
 {
     try
     {
         object[] args = new object[2];
         args[0] = cID;
         args[1] = project;
         //通过反射得到实例
         Assembly   _assembly = Assembly.LoadFile(System.IO.Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "\\FZYK.WinUI.FangYang.dll");
         BaseSingle form      = _assembly.CreateInstance("FZYK.WinUI.FangYang.FrmScdLegSectSetting", false, BindingFlags.CreateInstance, null, args, null, null) as BaseSingle;
         return(form);
     }
     catch (Exception ex) { throw ex; }
 }
コード例 #12
0
 /// <summary>
 /// 个人信息
 /// 鄢国平 2014年6月16日 22:14:47
 /// </summary>
 /// <returns></returns>
 public static BaseSingle GetLoginPerfectSingle(int eID)
 {
     try
     {
         object[] args = new object[3];
         args[0] = null;
         args[1] = null;
         args[2] = eID;
         //通过反射得到实例
         Assembly   _assembly = Assembly.LoadFile(System.IO.Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "\\FZYK.WinUI.OA.dll");
         BaseSingle form      = _assembly.CreateInstance("FZYK.WinUI.OA.FrmLoginPerfectSingle", false, BindingFlags.CreateInstance, null, args, null, null) as BaseSingle;
         return(form);
     }
     catch (Exception ex) { throw ex; }
 }
コード例 #13
0
 /// <summary>
 /// 弹开排班员工界面(cxp2012-8-3)
 /// 添加:CXP
 /// </summary>
 /// <returns></returns>
 public static BaseSingle GetProcessesGroupEmployee(string datetime, int pgid)
 {
     try
     {
         object[] args = new object[2];
         args[0] = datetime;
         args[1] = pgid;
         Assembly   assembly = Assembly.LoadFile(System.IO.Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "\\FZYK.WinUI.BaseSet.dll");
         BaseSingle bs       = assembly.CreateInstance("FZYK.WinUI.BaseSet.FrmProcessesGroupEmployee", false, BindingFlags.CreateInstance, null, args, null, null) as BaseSingle;
         return(bs);
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
コード例 #14
0
 /// <summary>
 /// 得到公告发送框
 /// 添加:鄢国平 2012-11-26
 /// </summary>
 /// <returns></returns>
 public static BaseSingle GetNotifyBoard(string nbTitle, string nbContent, string nbTurn, string nbFormName)
 {
     try
     {
         object[] args = new object[4];
         args[0] = nbTitle;
         args[1] = nbContent;
         args[2] = nbTurn;
         args[3] = nbFormName;
         //通过反射得到实例
         Assembly   _assembly = Assembly.LoadFile(System.IO.Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + "\\FZYK.WinUI.SystemManage.dll");
         BaseSingle form      = _assembly.CreateInstance("FZYK.WinUI.SystemManage.FrmNotifyBoardSingle", false, BindingFlags.CreateInstance, null, args, null, null) as BaseSingle;
         return(form);
     }
     catch (Exception ex) { throw ex; }
 }