262 lines
18 KiB
C#
262 lines
18 KiB
C#
|
|
using System;
|
|||
|
|
using System.Data;
|
|||
|
|
using System.Configuration;
|
|||
|
|
using System.Collections;
|
|||
|
|
using System.Web;
|
|||
|
|
using System.Web.Security;
|
|||
|
|
using System.Web.UI;
|
|||
|
|
using System.Web.UI.WebControls;
|
|||
|
|
using System.Web.UI.WebControls.WebParts;
|
|||
|
|
using System.Web.UI.HtmlControls;
|
|||
|
|
|
|||
|
|
public partial class DocFile_TiKuKaoShiView : System.Web.UI.Page
|
|||
|
|
{
|
|||
|
|
protected void Page_Load(object sender, EventArgs e)
|
|||
|
|
{
|
|||
|
|
if (!Page.IsPostBack)
|
|||
|
|
{
|
|||
|
|
ZWL.Common.PublicMethod.CheckSession();
|
|||
|
|
ZWL.BLL.ERPTiKuKaoShi Modela = new ZWL.BLL.ERPTiKuKaoShi();
|
|||
|
|
Modela.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
|
|||
|
|
this.lblUserName.Text=Modela.UserName.ToString();
|
|||
|
|
this.lblTimeStr.Text=Modela.TimeStr.ToString();
|
|||
|
|
this.lblShiJuanName.Text=Modela.ShiJuanName.ToString();
|
|||
|
|
|
|||
|
|
|
|||
|
|
//<2F><>ȡ<EFBFBD>Ծ<EFBFBD><D4BE><EFBFBD>Ϣ
|
|||
|
|
ZWL.BLL.ERPTiKuShiJuan Model = new ZWL.BLL.ERPTiKuShiJuan();
|
|||
|
|
Model.GetModel(int.Parse(Modela.ShiJuanID.ToString()));
|
|||
|
|
string[] FenLeiSunXu = Model.FenLeiShunXu.Split('|');
|
|||
|
|
for (int j = 0; j < FenLeiSunXu.Length; j++)
|
|||
|
|
{
|
|||
|
|
string DaBiaoTi = "һ";
|
|||
|
|
if (j == 0)
|
|||
|
|
{
|
|||
|
|
DaBiaoTi = "һ";
|
|||
|
|
}
|
|||
|
|
else if (j == 1)
|
|||
|
|
{
|
|||
|
|
DaBiaoTi = "<22><>";
|
|||
|
|
}
|
|||
|
|
else if (j == 2)
|
|||
|
|
{
|
|||
|
|
DaBiaoTi = "<22><>";
|
|||
|
|
}
|
|||
|
|
else if (j == 3)
|
|||
|
|
{
|
|||
|
|
DaBiaoTi = "<22><>";
|
|||
|
|
}
|
|||
|
|
else if (j == 4)
|
|||
|
|
{
|
|||
|
|
DaBiaoTi = "<22><>";
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
//<2F><EFBFBD>ǰ<EFBFBD><C7B0>Ŀ<EFBFBD><C4BF><EFBFBD>е<EFBFBD><D0B5><EFBFBD>Ŀ
|
|||
|
|
string TiMuIDList = "0";
|
|||
|
|
if (FenLeiSunXu[j].ToString() == "<22>ж<EFBFBD><D0B6><EFBFBD>")
|
|||
|
|
{
|
|||
|
|
TiMuIDList = ZWL.DBUtility.DbHelperSQL.GetStringList("select TiMuID from ERPTiKuKaoShiJieGuo where TiMuID in (select ID from ERPTiKu where FenLeiStr='" + FenLeiSunXu[j].ToString() + "') and KaoShiID=" + Request.QueryString["ID"].ToString()).Replace('|', ',');
|
|||
|
|
if (TiMuIDList.Trim().Length > 0 && TiMuIDList.Trim() != "0")
|
|||
|
|
{
|
|||
|
|
//һ<><D2BB> <09>ж<EFBFBD><D0B6>⣨ÿ<E2A3A8><C3BF>1<EFBFBD>֣<EFBFBD><D6A3><EFBFBD>20<32>֣<EFBFBD>
|
|||
|
|
this.Label1.Text = this.Label1.Text + DaBiaoTi + "<22><>" + FenLeiSunXu[j].ToString() + "<22><>ÿ<EFBFBD><C3BF>" + Model.PanDuanFenShu.ToString() + "<22>֣<EFBFBD><D6A3><EFBFBD>" + TiMuIDList.Split(',').Length.ToString() + "<22>⣬<EFBFBD>ϼ<EFBFBD>" + (Model.PanDuanFenShu * TiMuIDList.Split(',').Length).ToString() + "<22>֣<EFBFBD><hr>";
|
|||
|
|
|
|||
|
|
DataSet MYDT = ZWL.DBUtility.DbHelperSQL.GetDataSet("select * from ERPTiKu where ID in('" + TiMuIDList.Replace(",", "','") + "')");
|
|||
|
|
for (int i = 0; i < MYDT.Tables[0].Rows.Count; i++)
|
|||
|
|
{
|
|||
|
|
int TempNum = i + 1;
|
|||
|
|
this.Label1.Text = this.Label1.Text + TempNum.ToString() + "<22><>" + MYDT.Tables[0].Rows[i]["TitleStr"].ToString() + "" + JieDaStr(MYDT.Tables[0].Rows[i]["ID"].ToString(), Request.QueryString["ID"].ToString()) + "<br>";
|
|||
|
|
|
|||
|
|
if (MYDT.Tables[0].Rows[i]["ItemsA"].ToString().Trim().Length > 0)
|
|||
|
|
{
|
|||
|
|
this.Label1.Text = this.Label1.Text + " <input type=\"radio\" name=\"rad-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "\" value=\"A\"> A<><41>" + MYDT.Tables[0].Rows[i]["ItemsA"].ToString() + "<br>";
|
|||
|
|
}
|
|||
|
|
if (MYDT.Tables[0].Rows[i]["ItemsB"].ToString().Trim().Length > 0)
|
|||
|
|
{
|
|||
|
|
this.Label1.Text = this.Label1.Text + " <input type=\"radio\" name=\"rad-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "\" value=\"B\"> B<><42>" + MYDT.Tables[0].Rows[i]["ItemsB"].ToString() + "<br>";
|
|||
|
|
}
|
|||
|
|
this.Label1.Text = this.Label1.Text + "<P>";
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
else if (FenLeiSunXu[j].ToString() == "<22><><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1><EFBFBD><EFBFBD>")
|
|||
|
|
{
|
|||
|
|
TiMuIDList = ZWL.DBUtility.DbHelperSQL.GetStringList("select TiMuID from ERPTiKuKaoShiJieGuo where TiMuID in (select ID from ERPTiKu where FenLeiStr='" + FenLeiSunXu[j].ToString() + "') and KaoShiID=" + Request.QueryString["ID"].ToString()).Replace('|', ',');
|
|||
|
|
if (TiMuIDList.Trim().Length > 0 && TiMuIDList.Trim() != "0")
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
this.Label1.Text = this.Label1.Text + DaBiaoTi + "<22><>" + FenLeiSunXu[j].ToString() + "<22><>ÿ<EFBFBD><C3BF>" + Model.DanXuanFenShu.ToString() + "<22>֣<EFBFBD><D6A3><EFBFBD>" + TiMuIDList.Split(',').Length.ToString() + "<22>⣬<EFBFBD>ϼ<EFBFBD>" + (Model.DanXuanFenShu * TiMuIDList.Split(',').Length).ToString() + "<22>֣<EFBFBD><hr>";
|
|||
|
|
|
|||
|
|
DataSet MYDT = ZWL.DBUtility.DbHelperSQL.GetDataSet("select * from ERPTiKu where ID in('" + TiMuIDList.Replace(",", "','") + "')");
|
|||
|
|
for (int i = 0; i < MYDT.Tables[0].Rows.Count; i++)
|
|||
|
|
{
|
|||
|
|
int TempNum = i + 1;
|
|||
|
|
this.Label1.Text = this.Label1.Text + TempNum.ToString() + "<22><>" + MYDT.Tables[0].Rows[i]["TitleStr"].ToString() + "" + JieDaStr(MYDT.Tables[0].Rows[i]["ID"].ToString(), Request.QueryString["ID"].ToString()) + "<br>";
|
|||
|
|
|
|||
|
|
if (MYDT.Tables[0].Rows[i]["ItemsA"].ToString().Trim().Length > 0)
|
|||
|
|
{
|
|||
|
|
this.Label1.Text = this.Label1.Text + " <input type=\"radio\" name=\"rad-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "\" value=\"A\"> A<><41>" + MYDT.Tables[0].Rows[i]["ItemsA"].ToString() + "<br>";
|
|||
|
|
}
|
|||
|
|
if (MYDT.Tables[0].Rows[i]["ItemsB"].ToString().Trim().Length > 0)
|
|||
|
|
{
|
|||
|
|
this.Label1.Text = this.Label1.Text + " <input type=\"radio\" name=\"rad-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "\" value=\"B\"> B<><42>" + MYDT.Tables[0].Rows[i]["ItemsB"].ToString() + "<br>";
|
|||
|
|
}
|
|||
|
|
if (MYDT.Tables[0].Rows[i]["ItemsC"].ToString().Trim().Length > 0)
|
|||
|
|
{
|
|||
|
|
this.Label1.Text = this.Label1.Text + " <input type=\"radio\" name=\"rad-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "\" value=\"C\"> C<><43>" + MYDT.Tables[0].Rows[i]["ItemsC"].ToString() + "<br>";
|
|||
|
|
}
|
|||
|
|
if (MYDT.Tables[0].Rows[i]["ItemsD"].ToString().Trim().Length > 0)
|
|||
|
|
{
|
|||
|
|
this.Label1.Text = this.Label1.Text + " <input type=\"radio\" name=\"rad-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "\" value=\"D\"> D<><44>" + MYDT.Tables[0].Rows[i]["ItemsD"].ToString() + "<br>";
|
|||
|
|
}
|
|||
|
|
if (MYDT.Tables[0].Rows[i]["ItemsE"].ToString().Trim().Length > 0)
|
|||
|
|
{
|
|||
|
|
this.Label1.Text = this.Label1.Text + " <input type=\"radio\" name=\"rad-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "\" value=\"E\"> E<><45>" + MYDT.Tables[0].Rows[i]["ItemsE"].ToString() + "<br>";
|
|||
|
|
}
|
|||
|
|
if (MYDT.Tables[0].Rows[i]["ItemsF"].ToString().Trim().Length > 0)
|
|||
|
|
{
|
|||
|
|
this.Label1.Text = this.Label1.Text + " <input type=\"radio\" name=\"rad-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "\" value=\"F\"> F<><46>" + MYDT.Tables[0].Rows[i]["ItemsF"].ToString() + "<br>";
|
|||
|
|
}
|
|||
|
|
if (MYDT.Tables[0].Rows[i]["ItemsG"].ToString().Trim().Length > 0)
|
|||
|
|
{
|
|||
|
|
this.Label1.Text = this.Label1.Text + " <input type=\"radio\" name=\"rad-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "\" value=\"G\"> G<><47>" + MYDT.Tables[0].Rows[i]["ItemsG"].ToString() + "<br>";
|
|||
|
|
}
|
|||
|
|
if (MYDT.Tables[0].Rows[i]["ItemsH"].ToString().Trim().Length > 0)
|
|||
|
|
{
|
|||
|
|
this.Label1.Text = this.Label1.Text + " <input type=\"radio\" name=\"rad-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "\" value=\"H\"> H<><48>" + MYDT.Tables[0].Rows[i]["ItemsH"].ToString() + "<br>";
|
|||
|
|
}
|
|||
|
|
this.Label1.Text = this.Label1.Text + "<P>";
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
else if (FenLeiSunXu[j].ToString() == "<22><><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1><EFBFBD><EFBFBD>")
|
|||
|
|
{
|
|||
|
|
TiMuIDList = ZWL.DBUtility.DbHelperSQL.GetStringList("select TiMuID from ERPTiKuKaoShiJieGuo where TiMuID in (select ID from ERPTiKu where FenLeiStr='" + FenLeiSunXu[j].ToString() + "') and KaoShiID=" + Request.QueryString["ID"].ToString()).Replace('|', ',');
|
|||
|
|
if (TiMuIDList.Trim().Length > 0 && TiMuIDList.Trim() != "0")
|
|||
|
|
{
|
|||
|
|
this.Label1.Text = this.Label1.Text + DaBiaoTi + "<22><>" + FenLeiSunXu[j].ToString() + "<22><>ÿ<EFBFBD><C3BF>" + Model.DuoXuanFenShu.ToString() + "<22>֣<EFBFBD><D6A3><EFBFBD>" + TiMuIDList.Split(',').Length.ToString() + "<22>⣬<EFBFBD>ϼ<EFBFBD>" + (Model.DuoXuanFenShu * TiMuIDList.Split(',').Length).ToString() + "<22>֣<EFBFBD><hr>";
|
|||
|
|
|
|||
|
|
DataSet MYDT = ZWL.DBUtility.DbHelperSQL.GetDataSet("select * from ERPTiKu where ID in('" + TiMuIDList.Replace(",", "','") + "')");
|
|||
|
|
for (int i = 0; i < MYDT.Tables[0].Rows.Count; i++)
|
|||
|
|
{
|
|||
|
|
int TempNum = i + 1;
|
|||
|
|
this.Label1.Text = this.Label1.Text + TempNum.ToString() + "<22><>" + MYDT.Tables[0].Rows[i]["TitleStr"].ToString() + "" + JieDaStr(MYDT.Tables[0].Rows[i]["ID"].ToString(), Request.QueryString["ID"].ToString()) + "<br>";
|
|||
|
|
|
|||
|
|
if (MYDT.Tables[0].Rows[i]["ItemsA"].ToString().Trim().Length > 0)
|
|||
|
|
{
|
|||
|
|
this.Label1.Text = this.Label1.Text + " <input type=\"checkbox\" name=\"CHK-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "-A\" value=\"A\"> A<><41>" + MYDT.Tables[0].Rows[i]["ItemsA"].ToString() + "<br>";
|
|||
|
|
}
|
|||
|
|
if (MYDT.Tables[0].Rows[i]["ItemsB"].ToString().Trim().Length > 0)
|
|||
|
|
{
|
|||
|
|
this.Label1.Text = this.Label1.Text + " <input type=\"checkbox\" name=\"CHK-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "-B\" value=\"B\"> B<><42>" + MYDT.Tables[0].Rows[i]["ItemsB"].ToString() + "<br>";
|
|||
|
|
}
|
|||
|
|
if (MYDT.Tables[0].Rows[i]["ItemsC"].ToString().Trim().Length > 0)
|
|||
|
|
{
|
|||
|
|
this.Label1.Text = this.Label1.Text + " <input type=\"checkbox\" name=\"CHK-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "-C\" value=\"C\"> C<><43>" + MYDT.Tables[0].Rows[i]["ItemsC"].ToString() + "<br>";
|
|||
|
|
}
|
|||
|
|
if (MYDT.Tables[0].Rows[i]["ItemsD"].ToString().Trim().Length > 0)
|
|||
|
|
{
|
|||
|
|
this.Label1.Text = this.Label1.Text + " <input type=\"checkbox\" name=\"CHK-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "-D\" value=\"D\"> D<><44>" + MYDT.Tables[0].Rows[i]["ItemsD"].ToString() + "<br>";
|
|||
|
|
}
|
|||
|
|
if (MYDT.Tables[0].Rows[i]["ItemsE"].ToString().Trim().Length > 0)
|
|||
|
|
{
|
|||
|
|
this.Label1.Text = this.Label1.Text + " <input type=\"checkbox\" name=\"CHK-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "-E\" value=\"E\"> E<><45>" + MYDT.Tables[0].Rows[i]["ItemsE"].ToString() + "<br>";
|
|||
|
|
}
|
|||
|
|
if (MYDT.Tables[0].Rows[i]["ItemsF"].ToString().Trim().Length > 0)
|
|||
|
|
{
|
|||
|
|
this.Label1.Text = this.Label1.Text + " <input type=\"checkbox\" name=\"CHK-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "-F\" value=\"F\"> F<><46>" + MYDT.Tables[0].Rows[i]["ItemsF"].ToString() + "<br>";
|
|||
|
|
}
|
|||
|
|
if (MYDT.Tables[0].Rows[i]["ItemsG"].ToString().Trim().Length > 0)
|
|||
|
|
{
|
|||
|
|
this.Label1.Text = this.Label1.Text + " <input type=\"checkbox\" name=\"CHK-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "-G\" value=\"G\"> G<><47>" + MYDT.Tables[0].Rows[i]["ItemsG"].ToString() + "<br>";
|
|||
|
|
}
|
|||
|
|
if (MYDT.Tables[0].Rows[i]["ItemsH"].ToString().Trim().Length > 0)
|
|||
|
|
{
|
|||
|
|
this.Label1.Text = this.Label1.Text + " <input type=\"checkbox\" name=\"CHK-" + MYDT.Tables[0].Rows[i]["ID"].ToString() + "-H\" value=\"H\"> H<><48>" + MYDT.Tables[0].Rows[i]["ItemsH"].ToString() + "<br>";
|
|||
|
|
}
|
|||
|
|
this.Label1.Text = this.Label1.Text + "<P>";
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
else if (FenLeiSunXu[j].ToString() == "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>")
|
|||
|
|
{
|
|||
|
|
TiMuIDList = ZWL.DBUtility.DbHelperSQL.GetStringList("select TiMuID from ERPTiKuKaoShiJieGuo where TiMuID in (select ID from ERPTiKu where FenLeiStr='" + FenLeiSunXu[j].ToString() + "') and KaoShiID=" + Request.QueryString["ID"].ToString()).Replace('|', ',');
|
|||
|
|
if (TiMuIDList.Trim().Length > 0 && TiMuIDList.Trim() != "0")
|
|||
|
|
{
|
|||
|
|
this.Label1.Text = this.Label1.Text + DaBiaoTi + "<22><>" + FenLeiSunXu[j].ToString() + "<22><>ÿ<EFBFBD><C3BF>" + Model.TianKongFenShu.ToString() + "<22>֣<EFBFBD><D6A3><EFBFBD>" + TiMuIDList.Split(',').Length.ToString() + "<22>⣬<EFBFBD>ϼ<EFBFBD>" + (Model.TianKongFenShu * TiMuIDList.Split(',').Length).ToString() + "<22>֣<EFBFBD><hr>";
|
|||
|
|
|
|||
|
|
DataSet MYDT = ZWL.DBUtility.DbHelperSQL.GetDataSet("select * from ERPTiKu where ID in('" + TiMuIDList.Replace(",", "','") + "')");
|
|||
|
|
for (int i = 0; i < MYDT.Tables[0].Rows.Count; i++)
|
|||
|
|
{
|
|||
|
|
int TempNum = i + 1;
|
|||
|
|
this.Label1.Text = this.Label1.Text + TempNum.ToString() + "<22><>" + MYDT.Tables[0].Rows[i]["TitleStr"].ToString() + "" + JieDaStr2(MYDT.Tables[0].Rows[i]["ID"].ToString(), Request.QueryString["ID"].ToString()) + "<br>";
|
|||
|
|
this.Label1.Text = this.Label1.Text + "<P>";
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
else if (FenLeiSunXu[j].ToString() == "<22><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>")
|
|||
|
|
{
|
|||
|
|
TiMuIDList = ZWL.DBUtility.DbHelperSQL.GetStringList("select TiMuID from ERPTiKuKaoShiJieGuo where TiMuID in (select ID from ERPTiKu where FenLeiStr='" + FenLeiSunXu[j].ToString() + "') and KaoShiID=" + Request.QueryString["ID"].ToString()).Replace('|', ',');
|
|||
|
|
if (TiMuIDList.Trim().Length > 0 && TiMuIDList.Trim() != "0")
|
|||
|
|
{
|
|||
|
|
this.Label1.Text = this.Label1.Text + DaBiaoTi + "<22><>" + FenLeiSunXu[j].ToString() + "<22><>ÿ<EFBFBD><C3BF>" + Model.JianDaFenShu.ToString() + "<22>֣<EFBFBD><D6A3><EFBFBD>" + TiMuIDList.Split(',').Length.ToString() + "<22>⣬<EFBFBD>ϼ<EFBFBD>" + (Model.JianDaFenShu * TiMuIDList.Split(',').Length).ToString() + "<22>֣<EFBFBD><hr>";
|
|||
|
|
|
|||
|
|
DataSet MYDT = ZWL.DBUtility.DbHelperSQL.GetDataSet("select * from ERPTiKu where ID in('" + TiMuIDList.Replace(",", "','") + "')");
|
|||
|
|
for (int i = 0; i < MYDT.Tables[0].Rows.Count; i++)
|
|||
|
|
{
|
|||
|
|
int TempNum = i + 1;
|
|||
|
|
this.Label1.Text = this.Label1.Text + TempNum.ToString() + "<22><>" + MYDT.Tables[0].Rows[i]["TitleStr"].ToString() + "" + JieDaStr2(MYDT.Tables[0].Rows[i]["ID"].ToString(), Request.QueryString["ID"].ToString()) + "<br>";
|
|||
|
|
this.Label1.Text = this.Label1.Text + "<P>";
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
|
|||
|
|
//дϵͳ<CFB5><CDB3>־
|
|||
|
|
ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi();
|
|||
|
|
MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName");
|
|||
|
|
MyRiZhi.DoSomething = "<22>û<EFBFBD><C3BB>鿴<EFBFBD><E9BFB4><EFBFBD>߿<EFBFBD><DFBF><EFBFBD><EFBFBD><EFBFBD>Ϣ(" + this.lblUserName.Text + ")";
|
|||
|
|
MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
|
|||
|
|
MyRiZhi.Add();
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public string JieDaStr2(string TiMuIDStr,string KaoShiIDStr)
|
|||
|
|
{
|
|||
|
|
string DaAnStr = "";
|
|||
|
|
string UserDaAn = "";
|
|||
|
|
string DeFenStr = "";
|
|||
|
|
|
|||
|
|
DataSet MYDT = ZWL.DBUtility.DbHelperSQL.GetDataSet("select top 1 * from ERPTiKuKaoShiJieGuo where KaoShiID=" + KaoShiIDStr + " and TiMuID=" + TiMuIDStr);
|
|||
|
|
if (MYDT.Tables[0].Rows.Count > 0)
|
|||
|
|
{
|
|||
|
|
DaAnStr = MYDT.Tables[0].Rows[0]["DaAn"].ToString();
|
|||
|
|
UserDaAn = MYDT.Tables[0].Rows[0]["UserDaAn"].ToString();
|
|||
|
|
DeFenStr = MYDT.Tables[0].Rows[0]["DeFen"].ToString();
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
return "<font color=\"#0000FF\"><br> <3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>𰸣<EFBFBD>" + DaAnStr + "<br> <3B>û<EFBFBD><C3BB>𰸣<EFBFBD>" + UserDaAn + "<br> <3B>÷֣<C3B7>" + DeFenStr.ToString()+"</font>";
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public string JieDaStr(string TiMuIDStr, string KaoShiIDStr)
|
|||
|
|
{
|
|||
|
|
string DaAnStr = "";
|
|||
|
|
string UserDaAn = "";
|
|||
|
|
string DeFenStr = "";
|
|||
|
|
|
|||
|
|
DataSet MYDT = ZWL.DBUtility.DbHelperSQL.GetDataSet("select top 1 * from ERPTiKuKaoShiJieGuo where KaoShiID=" + KaoShiIDStr + " and TiMuID=" + TiMuIDStr);
|
|||
|
|
if (MYDT.Tables[0].Rows.Count > 0)
|
|||
|
|
{
|
|||
|
|
DaAnStr = MYDT.Tables[0].Rows[0]["DaAn"].ToString();
|
|||
|
|
UserDaAn = MYDT.Tables[0].Rows[0]["UserDaAn"].ToString();
|
|||
|
|
DeFenStr = MYDT.Tables[0].Rows[0]["DeFen"].ToString();
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
return "<font color=\"#0000FF\"><br> <3B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>𰸣<EFBFBD>" + DaAnStr + " <3B>û<EFBFBD><C3BB>𰸣<EFBFBD>" + UserDaAn + " <3B>÷֣<C3B7>" + DeFenStr.ToString() + "</font>";
|
|||
|
|
}
|
|||
|
|
}
|