📄 formfeiyong_edit.cs
字号:
using System;
using System.Collections.Generic;
using System.Text;
using Sybase.DataWindow;
using SPRFrame;
using HPIResource;
namespace HPIResource.HisForm
{
// 申请单项目实际收费
public class FormFeiyong_Edit : Sybase.DataWindow.DataStore
{
public FormFeiyong_Edit()
{
this.LibraryList = HPIR.PbdFile;
this.DataWindowObject = "dw_form_feiyong_edit";
this.SetTransaction(SPRF.GetDB());
}
#region 属性
public int FORM_ID
{
get
{
if (this.RowCount == 0) return -1;
try
{
return Convert.ToInt32(this.GetItemDouble(this.CurrentRow, "form_id"));
}
catch
{
return 0;
}
}
set
{
if (this.RowCount == 0) return;
this.SetItemDouble(this.CurrentRow, "form_id", value);
}
}
public int ITEM_ID
{
get
{
if (this.RowCount == 0) return -1;
return Convert.ToInt32(this.GetItemDouble(this.CurrentRow, "p_itemid"));
}
set
{
if (this.RowCount == 0) return;
this.SetItemDouble(this.CurrentRow, "p_itemid", value);
}
}
public double ITEM_PRICE
{
get
{
if (this.RowCount == 0) return -1;
return this.GetItemDouble(this.CurrentRow, "p_itemprice");
}
set
{
if (this.RowCount == 0) return;
this.SetItemDouble(this.CurrentRow, "p_itemprice", value);
}
}
public string ITEM_TYPE
{
get
{
if (this.RowCount == 0) return "NoData";
try
{
return this.GetItemString(this.CurrentRow, "p_itemtype");
}
catch
{
return "";
}
}
set
{
if (this.RowCount == 0) return;
this.SetItemString(this.CurrentRow, "p_itemtype", value);
}
}
public double NUM
{
get
{
if (this.RowCount == 0) return -1;
return this.GetItemDouble(this.CurrentRow, "num");
}
set
{
if (this.RowCount == 0) return;
this.SetItemDouble(this.CurrentRow, "num", value);
}
}
public string STS_ZIFEI
{
get
{
if (this.RowCount == 0) return "NoData";
try
{
return this.GetItemString(this.CurrentRow, "zifei_sts");
}
catch
{
return "1";
}
}
set
{
if (this.RowCount == 0) return;
this.SetItemString(this.CurrentRow, "zifei_sts", value);
}
}
public string STS_BAOXIANJB
{
get
{
if (this.RowCount == 0) return "NoData";
try
{
return this.GetItemString(this.CurrentRow, "baoxianjb");
}
catch
{
return "0";
}
}
set
{
if (this.RowCount == 0) return;
this.SetItemString(this.CurrentRow, "baoxianjb", value);
}
}
public string STS_BAOXIANXZ
{
get
{
if (this.RowCount == 0) return "NoData";
try
{
return this.GetItemString(this.CurrentRow, "baoxianxz");
}
catch
{
return "1";
}
}
set
{
if (this.RowCount == 0) return;
this.SetItemString(this.CurrentRow, "baoxianxz", value);
}
}
#endregion
#region 取数据的方法
public void SetDataById(int iId)
{
string SqlString = this.GetSqlSelect();
SqlString += "where form_id = " + iId.ToString() ;
this.SetSqlSelect(SqlString);
}
#endregion
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -