Merge branch 'master' of http://47.104.102.122:3000/lpf/SGGL_SeDin_New
This commit is contained in:
@@ -191,7 +191,7 @@ namespace FineUIPro.Web.CQMS.PersonManage
|
||||
rootNode.Text = item.UnitName;
|
||||
rootNode.EnableClickEvent = true;
|
||||
this.tvControlItem.Nodes.Add(rootNode);
|
||||
var getWelders = (from x in Funs.DB.SitePerson_Person where x.ProjectId == this.CurrUser.LoginProjectId && x.WorkPostId == Const.WorkPost_Welder && x.UnitId == item.UnitId select x).ToList();
|
||||
var getWelders = (from x in Funs.DB.SitePerson_Person where x.ProjectId == this.CurrUser.LoginProjectId && (x.WorkPostId == Const.WorkPost_Welder || x.WorkPostId == Const.WorkPost_Welder2) && x.UnitId == item.UnitId select x).ToList();
|
||||
if (!string.IsNullOrEmpty(txtQueryWelderCode.Text.Trim()))
|
||||
{
|
||||
getWelders = getWelders.Where(x => x.WelderCode.Contains(txtQueryWelderCode.Text.Trim())).ToList();
|
||||
|
||||
@@ -17019,7 +17019,7 @@
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
|
||||
|
||||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v18.0\WebApplications\Microsoft.WebApplication.targets" />
|
||||
<Import Project="$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v15.0\WebApplications\Microsoft.WebApplication.targets" />
|
||||
|
||||
<ProjectExtensions>
|
||||
<VisualStudio>
|
||||
|
||||
@@ -127,33 +127,33 @@
|
||||
try
|
||||
{
|
||||
viewTrainRecordDetails.Clear();
|
||||
string oleDBConnString = String.Empty;
|
||||
oleDBConnString = "Provider=Microsoft.Jet.OLEDB.4.0;";
|
||||
oleDBConnString += "Data Source=";
|
||||
oleDBConnString += fileName;
|
||||
oleDBConnString += ";Extended Properties=Excel 8.0;";
|
||||
OleDbConnection oleDBConn = null;
|
||||
OleDbDataAdapter oleAdMaster = null;
|
||||
DataTable m_tableName = new DataTable();
|
||||
DataSet ds = new DataSet();
|
||||
//string oleDBConnString = String.Empty;
|
||||
//oleDBConnString = "Provider=Microsoft.Jet.OLEDB.4.0;";
|
||||
//oleDBConnString += "Data Source=";
|
||||
//oleDBConnString += fileName;
|
||||
//oleDBConnString += ";Extended Properties=Excel 8.0;";
|
||||
//OleDbConnection oleDBConn = null;
|
||||
//OleDbDataAdapter oleAdMaster = null;
|
||||
//DataTable m_tableName = new DataTable();
|
||||
//DataSet ds = new DataSet();
|
||||
|
||||
oleDBConn = new OleDbConnection(oleDBConnString);
|
||||
oleDBConn.Open();
|
||||
m_tableName = oleDBConn.GetOleDbSchemaTable(OleDbSchemaGuid.Tables, null);
|
||||
//oleDBConn = new OleDbConnection(oleDBConnString);
|
||||
//oleDBConn.Open();
|
||||
//m_tableName = oleDBConn.GetOleDbSchemaTable(OleDbSchemaGuid.Tables, null);
|
||||
|
||||
if (m_tableName != null && m_tableName.Rows.Count > 0)
|
||||
{
|
||||
m_tableName.TableName = m_tableName.Rows[0]["TABLE_NAME"].ToString().Trim();
|
||||
}
|
||||
string sqlMaster;
|
||||
sqlMaster = " SELECT * FROM [" + m_tableName.TableName + "]";
|
||||
oleAdMaster = new OleDbDataAdapter(sqlMaster, oleDBConn);
|
||||
oleAdMaster.Fill(ds, "m_tableName");
|
||||
oleAdMaster.Dispose();
|
||||
oleDBConn.Close();
|
||||
oleDBConn.Dispose();
|
||||
|
||||
AddDatasetToSQL(ds.Tables[0]);
|
||||
//if (m_tableName != null && m_tableName.Rows.Count > 0)
|
||||
//{
|
||||
// m_tableName.TableName = m_tableName.Rows[0]["TABLE_NAME"].ToString().Trim();
|
||||
//}
|
||||
//string sqlMaster;
|
||||
//sqlMaster = " SELECT * FROM [" + m_tableName.TableName + "]";
|
||||
//oleAdMaster = new OleDbDataAdapter(sqlMaster, oleDBConn);
|
||||
//oleAdMaster.Fill(ds, "m_tableName");
|
||||
//oleAdMaster.Dispose();
|
||||
//oleDBConn.Close();
|
||||
//oleDBConn.Dispose();
|
||||
DataTable dt = NPOIHelper.ExcelToDataTable1(fileName);
|
||||
AddDatasetToSQL(dt);
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user