合并最新

This commit is contained in:
2022-12-20 09:32:32 +08:00
parent 844e9f1488
commit 1abdaa9476
654 changed files with 73563 additions and 9746 deletions
@@ -134,8 +134,7 @@
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<Items>
<f:TextBox ID="txtValue33" Label="是否需热处理" runat="server" MaxLength="1" LabelWidth="120px">
</f:TextBox>
<f:TextBox ID="txtValue34" Label="热处理编号" runat="server" LabelWidth="120px">
@@ -171,9 +170,7 @@
</Items>
</f:FormRow>
<f:FormRow>
<Items>
<Items>
<f:CheckBox ID="ckAll" runat="server" Checked="true" Text="是否批量修改"></f:CheckBox>
</Items>
</f:FormRow>
File diff suppressed because it is too large Load Diff
@@ -19,10 +19,6 @@
<style type="text/css">
/*定义父容器*/
.content{
width: 550px;
@@ -56,7 +52,9 @@
<f:CheckBox ID="ckUpdate" runat="server" Text="更新导入"></f:CheckBox>
<f:Button ID="btnSave" runat="server" Text="保存" ToolTip="审核保存" Icon="SystemSave" OnClick="btnSave_Click"></f:Button>
<f:Button ID="btnRefresh" runat="server" ClientIDMode="Static" Text="刷新" Icon="SystemSave" OnClick="btnRefresh_Click" Hidden="true"></f:Button>
<f:Button ID="btnD" runat="server" Icon="Delete" Text="删除重复焊口" ToolTip="删除临时表中同管线下重复焊口" ConfirmText="删除临时表中重复管线焊口?"
ConfirmTarget="Top" OnClick="btnD_Click">
</f:Button>
<f:Button ID="btnAllDelete" runat="server" Icon="Delete" Text="删除记录" ToolTip="删除当前人所有临时导入记录" ConfirmText="删除当前人所有临时导入记录?"
ConfirmTarget="Top" OnClick="btnAllDelete_Click">
</f:Button>
@@ -248,11 +246,7 @@
<f:ToolbarText ID="ToolbarText1" runat="server" Text="每页记录数:">
</f:ToolbarText>
<f:DropDownList runat="server" ID="ddlPageSize" Width="80px" AutoPostBack="true"
OnSelectedIndexChanged="ddlPageSize_SelectedIndexChanged">
<f:ListItem Text="10" Value="10" />
<f:ListItem Text="15" Value="15" Selected="true" />
<f:ListItem Text="20" Value="20" />
<f:ListItem Text="25" Value="25" />
OnSelectedIndexChanged="ddlPageSize_SelectedIndexChanged">
</f:DropDownList>
<f:Label Label="错误记录数" runat="server" ID="lbDataCout" CssClass="Label" LabelAlign="right" LabelWidth="120px"></f:Label>
</PageItems>
@@ -261,7 +255,7 @@
</f:Panel>
<f:Window ID="Window1" Title="数据信息" Hidden="true" EnableIFrame="true"
EnableMaximize="true" Target="Top" EnableResize="true" runat="server"
IsModal="true" Width="1200px" Height="600px">
IsModal="true" Width="1200px" Height="620px">
</f:Window>
<f:Window ID="Window2" Hidden="true" runat="server" MinHeight="30px"
Target="Parent" ShowHeader="false" BodyPadding="0" Margin="0"
@@ -39,6 +39,7 @@ namespace FineUIPro.Web.HJGL.DataIn
{
if (!IsPostBack)
{
Funs.DropDownPageSize(this.ddlPageSize);
if (percent == null)
{
percent = new Dictionary<string, int>();
@@ -265,7 +266,7 @@ namespace FineUIPro.Web.HJGL.DataIn
Grid1.PageSize = Convert.ToInt32(ddlPageSize.SelectedValue);
BindGrid();
}
/// <summary>
/// 排序
/// </summary>
@@ -275,8 +276,8 @@ namespace FineUIPro.Web.HJGL.DataIn
{
BindGrid();
}
#endregion
#endregion
#region
/// <summary>
/// 文件上传
@@ -345,7 +346,7 @@ namespace FineUIPro.Web.HJGL.DataIn
//oleDBConn.Close();
//oleDBConn.Dispose();
//this.AddDatasetToSQL(ds.Tables[0]);
DataTable dt = NPOIHelper.ExcelToDataTable1(fileUrl);
DataTable dt = NPOIHelper.ExcelToDataTable1(fileUrl);
this.AddDatasetToSQL(dt);
@@ -363,6 +364,7 @@ namespace FineUIPro.Web.HJGL.DataIn
}
}
#endregion
#region
/// 导出按钮
/// </summary>
@@ -379,6 +381,7 @@ namespace FineUIPro.Web.HJGL.DataIn
Response.End();
}
#endregion
#region Dataset的数据导入数据库
/// <summary>
/// 将Dataset的数据导入数据库
@@ -502,15 +505,15 @@ namespace FineUIPro.Web.HJGL.DataIn
percent.Add(CurrUser.UserId, 0);
}
PageContext.RegisterStartupScript("printX()");
PageContext.RegisterStartupScript("printX()");
}
protected void btnRefresh_Click(object sender, EventArgs e)
{
this.BindGrid();
}
protected void btnSaveMethod(string LoginProjectId,string UserId, string IsPDMS)
protected void btnSaveMethod(string LoginProjectId, string UserId, string IsPDMS)
{
//beginProgress();
var units = from x in Funs.DB.Base_Unit
@@ -530,7 +533,7 @@ namespace FineUIPro.Web.HJGL.DataIn
var components = from x in Funs.DB.Base_Components select x;
var dns = from x in Funs.DB.Base_DNCompare select x;
var dataInTemp = from x in Funs.DB.Sys_DataInTemp
where x.ProjectId == LoginProjectId && x.UserId ==UserId && x.Type == IsPDMS
where x.ProjectId == LoginProjectId && x.UserId == UserId && x.Type == IsPDMS
select x;
int okCount = 0;
int i = 0;
@@ -538,7 +541,7 @@ namespace FineUIPro.Web.HJGL.DataIn
string erreMessage = "";
foreach (var tempData in dataInTemp)
{
//if (i % (ir / 100 + 1) == 0 && i < ir && i > 0)
//{
// setProgress(i / (ir / 100 + 1));
@@ -548,11 +551,11 @@ namespace FineUIPro.Web.HJGL.DataIn
//}
//i++;
if (tempData != null)
{
i++;
{
i++;
percent[UserId] = (int)(100 * i / ir);
string errInfo = string.Empty;
var isExitValue = Funs.DB.View_JointInfoAndIsoInfo.FirstOrDefault(x => x.ProjectId == this.CurrUser.LoginProjectId && x.UnitCode == tempData.Value1
var isExitValue = Funs.DB.View_JointInfoAndIsoInfo.FirstOrDefault(x => x.ProjectId == this.CurrUser.LoginProjectId && x.UnitCode == tempData.Value1
&& x.WorkAreaCode == tempData.Value2 && x.ISO_IsoNo == tempData.Value3 && x.JOT_JointNo == tempData.Value4);
if (isExitValue == null || this.ckUpdate.Checked)
{
@@ -562,7 +565,7 @@ namespace FineUIPro.Web.HJGL.DataIn
isoInfo.Is_Standard = false;
if (!string.IsNullOrEmpty(tempData.Value1))
{
var unit = units.FirstOrDefault(x => x.UnitCode == tempData.Value1 );
var unit = units.FirstOrDefault(x => x.UnitCode == tempData.Value1);
if (unit == null)
{
errInfo += "单位代码[" + tempData.Value1 + "]不存在;";
@@ -625,7 +628,7 @@ namespace FineUIPro.Web.HJGL.DataIn
jointInfo.MaterialType = materialType.MaterialTypeId;
}
}
if (!string.IsNullOrEmpty(tempData.Value8))
{
jointInfo.Material1 = tempData.Value8;
@@ -733,7 +736,7 @@ namespace FineUIPro.Web.HJGL.DataIn
{
try
{
isoInfo.ISO_DesignTemperature = tempData.Value24;
}
catch (Exception)
@@ -827,10 +830,10 @@ namespace FineUIPro.Web.HJGL.DataIn
}
}
}
else
{
errInfo += "焊接区域为必填项;";
}
//else
//{
// errInfo += "焊接区域为必填项;";
//}
if (!string.IsNullOrEmpty(tempData.Value13))
{
if (tempData.Value13 != "固定" && tempData.Value13 != "活动")
@@ -842,10 +845,10 @@ namespace FineUIPro.Web.HJGL.DataIn
jointInfo.JOT_JointAttribute = tempData.Value13;
}
}
else
{
errInfo += "焊口属性为必填项;";
}
//else
//{
// errInfo += "焊口属性为必填项;";
//}
if (!string.IsNullOrEmpty(tempData.Value14))
{
try
@@ -997,10 +1000,10 @@ namespace FineUIPro.Web.HJGL.DataIn
jointInfo.JOT_Location = tempData.Value35;
}
}
else
{
errInfo += "焊接位置必填项;";
}
//else
//{
// errInfo += "焊接位置必填项;";
//}
if (!string.IsNullOrEmpty(tempData.Value36))
{
try
@@ -1129,7 +1132,7 @@ namespace FineUIPro.Web.HJGL.DataIn
{
isoInfo.ProjectId = this.CurrUser.LoginProjectId;
jointInfo.ProjectId = this.CurrUser.LoginProjectId;
var isExitISOValue = Funs.DB.View_JointInfoAndIsoInfo.FirstOrDefault(x => x.ProjectId == this.CurrUser.LoginProjectId && x.UnitCode == tempData.Value1
var isExitISOValue = Funs.DB.View_JointInfoAndIsoInfo.FirstOrDefault(x => x.ProjectId == this.CurrUser.LoginProjectId && x.UnitCode == tempData.Value1
&& x.WorkAreaCode == tempData.Value2 && x.ISO_IsoNo == tempData.Value3);
if (isExitISOValue != null) ///管线已存在
{
@@ -1143,7 +1146,7 @@ namespace FineUIPro.Web.HJGL.DataIn
jointInfo.ISO_ID = isoInfo.ISO_ID;
BLL.PW_IsoInfoService.AddIsoInfo(isoInfo);
}
var isExitJotNoValue = Funs.DB.View_JointInfoAndIsoInfo.FirstOrDefault(x => x.ProjectId == this.CurrUser.LoginProjectId && x.UnitCode == tempData.Value1
var isExitJotNoValue = Funs.DB.View_JointInfoAndIsoInfo.FirstOrDefault(x => x.ProjectId == this.CurrUser.LoginProjectId && x.UnitCode == tempData.Value1
&& x.WorkAreaCode == tempData.Value2 && x.ISO_IsoNo == tempData.Value3 && x.JOT_JointNo == tempData.Value4 && x.JOT_JointStatus != "104");
if (isExitJotNoValue == null)
{
@@ -1271,8 +1274,8 @@ namespace FineUIPro.Web.HJGL.DataIn
}
#endregion
public static Dictionary<string,int> percent { get; set; }
public static Dictionary<string,string >url { get; set; }
public static Dictionary<string, int> percent { get; set; }
public static Dictionary<string, string> url { get; set; }
[System.Web.Services.WebMethod]
public static int getPercent(string id)
@@ -1280,6 +1283,27 @@ namespace FineUIPro.Web.HJGL.DataIn
return percent[id];
}
/// <summary>
///
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void btnD_Click(object sender, EventArgs e)
{
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
{
int count = 0;
var getD = db.Sys_DataInTemp.Where(x => x.ProjectId == this.CurrUser.LoginProjectId && x.ToopValue == "该条记录已存在于管线、焊口信息表中。");
if (getD.Count() > 0)
{
count = getD.Count();
db.Sys_DataInTemp.DeleteAllOnSubmit(getD);
db.SubmitChanges();
}
this.BindGrid();
ShowNotify("删除成功!"+count.ToString(), MessageBoxIcon.Success);
}
}
}
}
+40 -33
View File
@@ -7,13 +7,11 @@
// </自动生成>
//------------------------------------------------------------------------------
namespace FineUIPro.Web.HJGL.DataIn
{
public partial class DataInTable
{
namespace FineUIPro.Web.HJGL.DataIn {
public partial class DataInTable {
/// <summary>
/// form1 控件。
/// </summary>
@@ -22,7 +20,7 @@ namespace FineUIPro.Web.HJGL.DataIn
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::System.Web.UI.HtmlControls.HtmlForm form1;
/// <summary>
/// PageManager1 控件。
/// </summary>
@@ -31,7 +29,7 @@ namespace FineUIPro.Web.HJGL.DataIn
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.PageManager PageManager1;
/// <summary>
/// id 控件。
/// </summary>
@@ -40,7 +38,7 @@ namespace FineUIPro.Web.HJGL.DataIn
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.HiddenField id;
/// <summary>
/// Panel1 控件。
/// </summary>
@@ -49,7 +47,7 @@ namespace FineUIPro.Web.HJGL.DataIn
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Panel Panel1;
/// <summary>
/// Toolbar1 控件。
/// </summary>
@@ -58,7 +56,7 @@ namespace FineUIPro.Web.HJGL.DataIn
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Toolbar Toolbar1;
/// <summary>
/// FileExcel 控件。
/// </summary>
@@ -67,7 +65,7 @@ namespace FineUIPro.Web.HJGL.DataIn
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.FileUpload FileExcel;
/// <summary>
/// imgbtnImport 控件。
/// </summary>
@@ -76,7 +74,7 @@ namespace FineUIPro.Web.HJGL.DataIn
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button imgbtnImport;
/// <summary>
/// ToolbarFill1 控件。
/// </summary>
@@ -85,7 +83,7 @@ namespace FineUIPro.Web.HJGL.DataIn
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ToolbarFill ToolbarFill1;
/// <summary>
/// ckUpdate 控件。
/// </summary>
@@ -94,7 +92,7 @@ namespace FineUIPro.Web.HJGL.DataIn
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.CheckBox ckUpdate;
/// <summary>
/// btnSave 控件。
/// </summary>
@@ -103,7 +101,7 @@ namespace FineUIPro.Web.HJGL.DataIn
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnSave;
/// <summary>
/// btnRefresh 控件。
/// </summary>
@@ -112,7 +110,16 @@ namespace FineUIPro.Web.HJGL.DataIn
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnRefresh;
/// <summary>
/// btnD 控件。
/// </summary>
/// <remarks>
/// 自动生成的字段。
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnD;
/// <summary>
/// btnAllDelete 控件。
/// </summary>
@@ -121,7 +128,7 @@ namespace FineUIPro.Web.HJGL.DataIn
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnAllDelete;
/// <summary>
/// btnOut 控件。
/// </summary>
@@ -130,7 +137,7 @@ namespace FineUIPro.Web.HJGL.DataIn
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button btnOut;
/// <summary>
/// imgbtnUpload 控件。
/// </summary>
@@ -139,7 +146,7 @@ namespace FineUIPro.Web.HJGL.DataIn
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button imgbtnUpload;
/// <summary>
/// lkAchievements 控件。
/// </summary>
@@ -148,7 +155,7 @@ namespace FineUIPro.Web.HJGL.DataIn
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Button lkAchievements;
/// <summary>
/// Grid1 控件。
/// </summary>
@@ -157,7 +164,7 @@ namespace FineUIPro.Web.HJGL.DataIn
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Grid Grid1;
/// <summary>
/// ToolbarSeparator1 控件。
/// </summary>
@@ -166,7 +173,7 @@ namespace FineUIPro.Web.HJGL.DataIn
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ToolbarSeparator ToolbarSeparator1;
/// <summary>
/// ToolbarText1 控件。
/// </summary>
@@ -175,7 +182,7 @@ namespace FineUIPro.Web.HJGL.DataIn
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ToolbarText ToolbarText1;
/// <summary>
/// ddlPageSize 控件。
/// </summary>
@@ -184,7 +191,7 @@ namespace FineUIPro.Web.HJGL.DataIn
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.DropDownList ddlPageSize;
/// <summary>
/// lbDataCout 控件。
/// </summary>
@@ -193,7 +200,7 @@ namespace FineUIPro.Web.HJGL.DataIn
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Label lbDataCout;
/// <summary>
/// Window1 控件。
/// </summary>
@@ -202,7 +209,7 @@ namespace FineUIPro.Web.HJGL.DataIn
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Window Window1;
/// <summary>
/// Window2 控件。
/// </summary>
@@ -211,7 +218,7 @@ namespace FineUIPro.Web.HJGL.DataIn
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Window Window2;
/// <summary>
/// ContentPanel3 控件。
/// </summary>
@@ -220,7 +227,7 @@ namespace FineUIPro.Web.HJGL.DataIn
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.ContentPanel ContentPanel3;
/// <summary>
/// Menu1 控件。
/// </summary>
@@ -229,7 +236,7 @@ namespace FineUIPro.Web.HJGL.DataIn
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.Menu Menu1;
/// <summary>
/// btnMenuEdit 控件。
/// </summary>
@@ -238,7 +245,7 @@ namespace FineUIPro.Web.HJGL.DataIn
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.MenuButton btnMenuEdit;
/// <summary>
/// btnMenuDelete 控件。
/// </summary>
@@ -247,7 +254,7 @@ namespace FineUIPro.Web.HJGL.DataIn
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
/// </remarks>
protected global::FineUIPro.MenuButton btnMenuDelete;
/// <summary>
/// ScriptManager2 控件。
/// </summary>