锐腾搅拌上料功能
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
1.5 KiB

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ICSSoft.Frame.Data.DAL;
using ICSSoft.Frame.Data.Entity;
using System.Data;
namespace ICSSoft.Frame.Data.BLL
{
public class ICSKODFOLDERBLL
{
public static void Edit(Sys_DataBase dbinfo, ICSKODFOLDER info, string dsconn)
{
ICSKODFOLDERDAL.Edit(dbinfo, info, dsconn);
}
public static KODFolder SelectFolderInfo(string wp, string dsconn)
{
DataTable dt= ICSKODFOLDERDAL.SelectFolderInfo(wp, dsconn);
if (dt.Rows.Count == 0)
{
throw new Exception("可道云api未配置");
}
if (string.IsNullOrEmpty(dt.Rows[0]["ID"].ToString().Trim()))
{
throw new Exception("可道云api,图纸对应文件夹未配置");
}
KODFolder Kod = new KODFolder();
Kod.URL = dt.Rows[0]["DBIpAddress"].ToString();
Kod.NAME = dt.Rows[0]["DBSourceName"].ToString();
Kod.PATH = dt.Rows[0]["DBName"].ToString();
Kod.USER = dt.Rows[0]["DBUser"].ToString();
Kod.PWD = dt.Rows[0]["DBPwd"].ToString();
Kod.General = dt.Rows[0]["General"].ToString();
Kod.OP = dt.Rows[0]["OP"].ToString();
Kod.Cutters = dt.Rows[0]["Cutters"].ToString();
Kod.SOP = dt.Rows[0]["SOP"].ToString();
Kod.SIP = dt.Rows[0]["SIP"].ToString();
return Kod;
}
}
}