1
This commit is contained in:
@@ -15,6 +15,8 @@
|
||||
<Toolbars>
|
||||
<f:Toolbar ID="Toolbar1" Position="Top" runat="server" ToolbarAlign="Right">
|
||||
<Items>
|
||||
<f:DropDownList ID="drpIsoNo" Label="管线号" runat="server" EnableEdit="true" LabelWidth="100px" LabelAlign="Right">
|
||||
</f:DropDownList>
|
||||
<f:TextBox ID="txtJointNoS" runat="server" Label="焊口代号" LabelAlign="Right">
|
||||
</f:TextBox>
|
||||
<f:Button ID="btnCopy" Icon="DiskDownload" runat="server" Text="引用" OnClick="btnCopy_Click">
|
||||
|
||||
@@ -92,6 +92,14 @@
|
||||
/// </summary>
|
||||
private void LoadDropDownList()
|
||||
{
|
||||
///管线号
|
||||
this.drpIsoNo.DataTextField = "ISO_IsoNo";
|
||||
this.drpIsoNo.DataValueField = "ISO_ID";
|
||||
this.drpIsoNo.DataSource = BLL.HJGL_PW_IsoInfoService.GetIsoInfoByProjectId(this.ProjectId);
|
||||
this.drpIsoNo.DataBind();
|
||||
Funs.FineUIPleaseSelect(this.drpIsoNo);
|
||||
this.drpIsoNo.SelectedValue = this.ISO_ID;
|
||||
|
||||
///材质1
|
||||
this.ddlSTE1.DataTextField = "STE_Code";
|
||||
this.ddlSTE1.DataValueField = "STE_ID";
|
||||
@@ -634,7 +642,7 @@
|
||||
}
|
||||
|
||||
Model.HJGL_PW_JointInfo newJointInfo = new Model.HJGL_PW_JointInfo();
|
||||
newJointInfo.ProjectId =this.ProjectId;
|
||||
newJointInfo.ProjectId = this.ProjectId;
|
||||
newJointInfo.ISO_ID = this.ISO_ID;
|
||||
newJointInfo.JOT_JointNo = this.txtJointNo.Text.Trim();
|
||||
newJointInfo.JOT_JointDesc = this.txtJointDesc.Text.Trim();
|
||||
@@ -987,7 +995,7 @@
|
||||
//焊口号前自动加C
|
||||
string jointNo = this.txtJointNo.Text.Trim();
|
||||
if (!string.IsNullOrEmpty(jointNo))
|
||||
{
|
||||
{
|
||||
if (char.IsDigit(jointNo[0]))
|
||||
{
|
||||
this.txtJointNo.Text = "C" + jointNo;
|
||||
@@ -1105,9 +1113,9 @@
|
||||
/// <param name="e"></param>
|
||||
protected void btnCopy_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(this.txtJointNoS.Text.Trim()) && !string.IsNullOrEmpty(this.ISO_ID))
|
||||
if (!string.IsNullOrEmpty(this.txtJointNoS.Text.Trim()) && this.drpIsoNo.SelectedValue != BLL.Const._Null)
|
||||
{
|
||||
var jointInfo = BLL.HJGL_PW_JointInfoService.GetJointInfoByJointNoAndIsoId(this.txtJointNoS.Text.Trim(), this.ISO_ID, this.ProjectId);
|
||||
var jointInfo = BLL.HJGL_PW_JointInfoService.GetJointInfoByJointNoAndIsoId(this.txtJointNoS.Text.Trim(), this.drpIsoNo.SelectedValue, this.ProjectId);
|
||||
if (jointInfo != null)
|
||||
{
|
||||
//this.txtJointNo.Text = jointInfo.JOT_JointNo;
|
||||
|
||||
@@ -48,6 +48,15 @@ namespace FineUIPro.Web.HJGL.WeldingManage {
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.Toolbar Toolbar1;
|
||||
|
||||
/// <summary>
|
||||
/// drpIsoNo 控件。
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// 自动生成的字段。
|
||||
/// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。
|
||||
/// </remarks>
|
||||
protected global::FineUIPro.DropDownList drpIsoNo;
|
||||
|
||||
/// <summary>
|
||||
/// txtJointNoS 控件。
|
||||
/// </summary>
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
<FineUIPro DebugMode="false" Theme="Cupertino"/>
|
||||
<appSettings>
|
||||
<!--连接字符串-->
|
||||
<add key="ConnectionString" value="Server=.\SQL2022;Database=HJGLDB_DS;Integrated Security=False;User ID=sa;Password=1111;MultipleActiveResultSets=true;Max Pool Size = 1000;Connect Timeout=1200"/>
|
||||
<add key="ConnectionString" value="Server=.\MSSQLSERVER01;Database=HJGLDB_DS;Integrated Security=False;User ID=sa;Password=1111;MultipleActiveResultSets=true;Max Pool Size = 1000;Connect Timeout=1200"/>
|
||||
<!--系统名称-->
|
||||
<add key="SystemName" value="诺必达焊接管理系统"/>
|
||||
<add key="ChartImageHandler" value="storage=file;timeout=20;url=~/Images/;"/>
|
||||
|
||||
Reference in New Issue
Block a user