/*******************************************************************************
* Copyright(c) 2014 DongkeSoft All rights reserved. / Confidential
* 类的信息:
* 1.程序名称:F_PC_0102.cs
* 2.功能描述:成型线管理
* 编辑履历:
* 作者 日期 版本 修改内容
* 陈晓野 2015/04/22 1.00 新建
*******************************************************************************/
using System;
using System.Collections.Generic;
using System.Data;
using System.Reflection;
using System.Windows.Forms;
using Dongke.IBOSS.PRD.Basics.BaseControls;
using Dongke.IBOSS.PRD.Basics.BaseResources;
using Dongke.IBOSS.PRD.Client.CommonModule;
using Dongke.IBOSS.PRD.Client.Controls;
using Dongke.IBOSS.PRD.WCF.DataModels;
using Dongke.IBOSS.PRD.WCF.Proxys;
using Dongke.IBOSS.PRD.WCF.Proxys.PCModuleService;
namespace Dongke.IBOSS.PRD.Client.PCModule
{
///
/// 成型线管理
///
public partial class F_PC_0102_1 : DKFormBase
{
#region 成员变量
// 成型线ID
private int _lineID = 0;
// 窗体模式
private Constant.FormMode _formMode = Constant.FormMode.Add;
#endregion
#region 构造函数
///
/// 成型线管理
///
public F_PC_0102_1()
:this(0)
{
}
///
/// 成型线管理
///
/// 成型线ID
public F_PC_0102_1(int id)
{
this._lineID = id;
this.InitializeComponent();
this.InitializeControls();
}
#endregion
#region 事件
///
/// 窗体加载事件
///
///
///
private void F_PC_0102_Load(object sender, EventArgs e)
{
try
{
// 取得成型线信息
//ServiceResultEntity sre = this.DoAsync(() =>
// {
// return PCModuleProxyNew.Service.GetFPC0102Data();
// }
//);
}
catch (Exception ex)
{
// 对异常进行共通处理
ExceptionManager.HandleEventException(this.ToString(),
MethodBase.GetCurrentMethod().Name, this.Text, ex);
}
}
///
/// 添加成型线明细
///
private void btnAddMould_Click(object sender, EventArgs e)
{
try
{
}
catch (Exception ex)
{
// 对异常进行共通处理
ExceptionManager.HandleEventException(this.ToString(),
MethodBase.GetCurrentMethod().Name, this.Text, ex);
}
}
///
/// 关闭窗体
///
private void btnCancel_Click(object sender, EventArgs e)
{
this.Close();
}
///
/// 删除明细
///
private void btnDeleteSelected_Click(object sender, EventArgs e)
{
try
{
}
catch (Exception ex)
{
// 对异常进行共通处理
ExceptionManager.HandleEventException(this.ToString(),
MethodBase.GetCurrentMethod().Name, this.Text, ex);
}
}
///
/// 提交新建
///
private void btnSave_Click(object sender, EventArgs e)
{
try
{
}
catch (Exception ex)
{
// 对异常进行共通处理
ExceptionManager.HandleEventException(this.ToString(),
MethodBase.GetCurrentMethod().Name, this.Text, ex);
}
}
///
/// 编号变更
///
private void txtBuildingNo_TextChanged(object sender, EventArgs e)
{
this.txtGroutingLineCode.Text = this.txtBuildingNo.Text + this.txtFloorNo.Text.PadLeft(2, '0')
+ this.txtGroutingLineNo.Text.Trim();
this.txtGroutingLineName.Text = this.txtBuildingNo.Text + this.txtFloorNo.Text.PadLeft(2, '0')
+ this.txtGroutingLineNo.Text.Trim();
}
///
/// 编号变更
///
private void txtFloorNo_TextChanged(object sender, EventArgs e)
{
this.txtGroutingLineCode.Text = this.txtBuildingNo.Text + this.txtFloorNo.Text.PadLeft(2, '0')
+ this.txtGroutingLineNo.Text.Trim();
this.txtGroutingLineName.Text = this.txtBuildingNo.Text + this.txtFloorNo.Text.PadLeft(2, '0')
+ this.txtGroutingLineNo.Text.Trim();
}
///
/// 编号变更
///
private void txtGroutingLineNo_TextChanged(object sender, EventArgs e)
{
this.txtGroutingLineCode.Text = this.txtBuildingNo.Text + this.txtFloorNo.Text.PadLeft(2, '0')
+ this.txtGroutingLineNo.Text.Trim();
this.txtGroutingLineName.Text = this.txtBuildingNo.Text + this.txtFloorNo.Text.PadLeft(2, '0')
+ this.txtGroutingLineNo.Text.Trim();
}
///
/// 成型线文本改变事件
///
///
///
private void txtGroutingLineCode_TextChanged(object sender, EventArgs e)
{
}
#endregion
#region 私有方法
///
/// 初始化控件
///
private void InitializeControls()
{
this.Text = FormTitles.F_PC_0102;
this.btnSave.Text = ButtonText.BTN_SAVE;
this.btnClose.Text = ButtonText.BTN_CLOSE;
this.dkUser.IsWorker = true;
}
#endregion
}
}