dropdownlist中绑定2个值分别为材料,设备,
当点击提交时候,怎么样让材料在数据库里显示为1.设备显示为0
#region public void SetPageValue(CheckManager paramCheck) 获取页面数据
/// <summary>
/// 获取页面数据
/// </summary>
/// <param name="paramConsumeCodeManager"></param>
public void SetPageValue(CheckManager paramCheck)
{
this.txtCode.Text = paramCheck.Code.ToString();
this.txtDate.Text = paramCheck.Date.ToString();
this.ddlListType.SelectedValue= paramCheck.ListType.ToString();
this.txtStorageID.Text = paramCheck.StorageID.ToString();
this.txtDepositAreaID.Text = paramCheck.DepositAreaID.ToString();
this.txtWarehousemanID.Text = paramCheck.WarehousemanID.ToString();
this.txtCompanyID.Text = paramCheck.CompanyID.ToString();
this.txtRe.Text = paramCheck.Re.ToString();
this.hidCheckDate.Value = paramCheck.CheckDate.ToString();
this.hidStorageID.Value = paramCheck.StorageID.ToString();
this.hidCompanyID.Value = paramCheck.CompanyID.ToString();
this.hidDepositAreaID.Value = paramCheck.DepositAreaID.ToString();
this.hidWarehousemanID.Value = paramCheck.WarehousemanID.ToString(); }
#endregion #region public CheckManager GetPageValue(CheckManager paramCheck) 获取页面数据
/// <summary>
/// 获取页面数据
/// </summary>
/// <param name="paramConsumeCodeManager"></param>
public CheckManager GetPageValue(CheckManager paramCheck)
{
paramCheck.Code = this.txtCode.Text;
paramCheck.Date = this.txtDate.Text;
paramCheck.ListType =
paramCheck.StorageID = this.txtStorageID.Text;
paramCheck.DepositAreaID = this.txtDepositAreaID.Text;
paramCheck.WarehousemanID = this.txtWarehousemanID.Text;
paramCheck.CompanyID = this.txtCompanyID.Text;
paramCheck.Re = this.txtRe.Text;
return paramCheck; }
#endregion
当点击提交时候,怎么样让材料在数据库里显示为1.设备显示为0
#region public void SetPageValue(CheckManager paramCheck) 获取页面数据
/// <summary>
/// 获取页面数据
/// </summary>
/// <param name="paramConsumeCodeManager"></param>
public void SetPageValue(CheckManager paramCheck)
{
this.txtCode.Text = paramCheck.Code.ToString();
this.txtDate.Text = paramCheck.Date.ToString();
this.ddlListType.SelectedValue= paramCheck.ListType.ToString();
this.txtStorageID.Text = paramCheck.StorageID.ToString();
this.txtDepositAreaID.Text = paramCheck.DepositAreaID.ToString();
this.txtWarehousemanID.Text = paramCheck.WarehousemanID.ToString();
this.txtCompanyID.Text = paramCheck.CompanyID.ToString();
this.txtRe.Text = paramCheck.Re.ToString();
this.hidCheckDate.Value = paramCheck.CheckDate.ToString();
this.hidStorageID.Value = paramCheck.StorageID.ToString();
this.hidCompanyID.Value = paramCheck.CompanyID.ToString();
this.hidDepositAreaID.Value = paramCheck.DepositAreaID.ToString();
this.hidWarehousemanID.Value = paramCheck.WarehousemanID.ToString(); }
#endregion #region public CheckManager GetPageValue(CheckManager paramCheck) 获取页面数据
/// <summary>
/// 获取页面数据
/// </summary>
/// <param name="paramConsumeCodeManager"></param>
public CheckManager GetPageValue(CheckManager paramCheck)
{
paramCheck.Code = this.txtCode.Text;
paramCheck.Date = this.txtDate.Text;
paramCheck.ListType =
paramCheck.StorageID = this.txtStorageID.Text;
paramCheck.DepositAreaID = this.txtDepositAreaID.Text;
paramCheck.WarehousemanID = this.txtWarehousemanID.Text;
paramCheck.CompanyID = this.txtCompanyID.Text;
paramCheck.Re = this.txtRe.Text;
return paramCheck; }
#endregion
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货