130 lines
7.2 KiB
C#
130 lines
7.2 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_TiKuShiJuanView : System.Web.UI.Page
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
|
|||
|
|
protected void Page_Load(object sender, EventArgs e)
|
|||
|
|
{
|
|||
|
|
if (!Page.IsPostBack)
|
|||
|
|
{
|
|||
|
|
ZWL.Common.PublicMethod.CheckSession();
|
|||
|
|
ZWL.BLL.ERPTiKuShiJuan Model = new ZWL.BLL.ERPTiKuShiJuan();
|
|||
|
|
Model.GetModel(int.Parse(Request.QueryString["ID"].ToString()));
|
|||
|
|
this.lblShiJuanTitle.Text=Model.ShiJuanTitle.ToString();
|
|||
|
|
this.lblIFSuiJiChuTi.Text=Model.IFSuiJiChuTi.ToString();
|
|||
|
|
this.lblFenLeiShunXu.Text=Model.FenLeiShunXu.ToString();
|
|||
|
|
this.lblKaoShiXianShi.Text=Model.KaoShiXianShi.ToString();
|
|||
|
|
|
|||
|
|
//this.lblPanDuanTiList.Text=Model.PanDuanTiList.ToString();
|
|||
|
|
//this.lblDanXuanTiList.Text = Model.DanXuanTiList.ToString();
|
|||
|
|
//this.lblDuoXuanTiList.Text = Model.DuoXuanTiList.ToString();
|
|||
|
|
//this.lblTianKongTiList.Text = Model.TianKongTiList.ToString();
|
|||
|
|
//this.lblJianDaTiList.Text = Model.JianDaTiList.ToString();
|
|||
|
|
|
|||
|
|
if (Model.IFSuiJiChuTi.ToString() == "<22><>")
|
|||
|
|
{
|
|||
|
|
string[] T1 = Model.PanDuanTiList.ToString().Split(',');
|
|||
|
|
int TLInt1 = T1.Length;
|
|||
|
|
if (T1.Length == 1 && T1[0].Trim().Length == 0)
|
|||
|
|
{
|
|||
|
|
TLInt1 = 0;
|
|||
|
|
}
|
|||
|
|
Decimal FenShu1 = TLInt1 * Decimal.Parse(Model.PanDuanFenShu.ToString());
|
|||
|
|
this.lblPanDuanTiList.Text = "<22><> " + TLInt1.ToString() + " <3B>⣬ÿ<E2A3AC><C3BF> " + Model.PanDuanFenShu.ToString() + " <3B>֣<EFBFBD><D6A3>ϼ<EFBFBD> " + FenShu1 + " <3B>֡<EFBFBD>" + GetShiTiList(Model.PanDuanTiList.ToString());
|
|||
|
|
|
|||
|
|
string[] T2 = Model.DanXuanTiList.ToString().Split(',');
|
|||
|
|
int TLInt2 = T2.Length;
|
|||
|
|
if (T2.Length == 1 && T2[0].Trim().Length == 0)
|
|||
|
|
{
|
|||
|
|
TLInt2 = 0;
|
|||
|
|
}
|
|||
|
|
Decimal FenShu2 = TLInt2 * Decimal.Parse(Model.DanXuanFenShu.ToString());
|
|||
|
|
this.lblDanXuanTiList.Text = "<22><> " + TLInt2.ToString() + " <3B>⣬ÿ<E2A3AC><C3BF> " + Model.DanXuanFenShu.ToString() + " <3B>֣<EFBFBD><D6A3>ϼ<EFBFBD> " + FenShu2 + " <3B>֡<EFBFBD>" + GetShiTiList(Model.DanXuanTiList.ToString());
|
|||
|
|
|
|||
|
|
|
|||
|
|
string[] T3 = Model.DuoXuanTiList.ToString().Split(',');
|
|||
|
|
int TLInt3 = T3.Length;
|
|||
|
|
if (T3.Length == 1 && T3[0].Trim().Length == 0)
|
|||
|
|
{
|
|||
|
|
TLInt3 = 0;
|
|||
|
|
}
|
|||
|
|
Decimal FenShu3 = TLInt3 * Decimal.Parse(Model.DuoXuanFenShu.ToString());
|
|||
|
|
this.lblDuoXuanTiList.Text = "<22><> " + TLInt3.ToString() + " <3B>⣬ÿ<E2A3AC><C3BF> " + Model.DuoXuanFenShu.ToString() + " <3B>֣<EFBFBD><D6A3>ϼ<EFBFBD> " + FenShu3 + " <3B>֡<EFBFBD>" + GetShiTiList(Model.DuoXuanTiList.ToString());
|
|||
|
|
|
|||
|
|
|
|||
|
|
string[] T4 = Model.TianKongTiList.ToString().Split(',');
|
|||
|
|
int TLInt4 = T4.Length;
|
|||
|
|
if (T4.Length == 1 && T4[0].Trim().Length == 0)
|
|||
|
|
{
|
|||
|
|
TLInt4 = 0;
|
|||
|
|
}
|
|||
|
|
Decimal FenShu4 = TLInt4 * Decimal.Parse(Model.TianKongFenShu.ToString());
|
|||
|
|
this.lblTianKongTiList.Text = "<22><> " + TLInt4.ToString() + " <3B>⣬ÿ<E2A3AC><C3BF> " + Model.TianKongFenShu.ToString() + " <3B>֣<EFBFBD><D6A3>ϼ<EFBFBD> " + FenShu4 + " <3B>֡<EFBFBD>" + GetShiTiList(Model.TianKongTiList.ToString());
|
|||
|
|
|
|||
|
|
|
|||
|
|
string[] T5 = Model.JianDaTiList.ToString().Split(',');
|
|||
|
|
int TLInt5 = T5.Length;
|
|||
|
|
if (T5.Length == 1 && T5[0].Trim().Length == 0)
|
|||
|
|
{
|
|||
|
|
TLInt5 = 0;
|
|||
|
|
}
|
|||
|
|
Decimal FenShu5 = TLInt5 * Decimal.Parse(Model.JianDaFenShu.ToString());
|
|||
|
|
this.lblJianDaTiList.Text = "<22><> " + TLInt5.ToString() + " <3B>⣬ÿ<E2A3AC><C3BF> " + Model.JianDaFenShu.ToString() + " <3B>֣<EFBFBD><D6A3>ϼ<EFBFBD> " + FenShu5 + " <3B>֡<EFBFBD>" + GetShiTiList(Model.JianDaTiList.ToString());
|
|||
|
|
}
|
|||
|
|
else
|
|||
|
|
{
|
|||
|
|
DataSet MYDT = ZWL.DBUtility.DbHelperSQL.GetDataSet("select * from ERPTiKuShiJuanSet where ShiJuanID=" + Request.QueryString["ID"].ToString());
|
|||
|
|
if (MYDT.Tables[0].Rows.Count > 0)
|
|||
|
|
{
|
|||
|
|
this.lblPanDuanTiList.Text = "<22><> " + MYDT.Tables[0].Rows[0]["PanDuanNum"].ToString() + " <3B>⣬ÿ<E2A3AC><C3BF> " + Model.PanDuanFenShu.ToString() + " <3B>֣<EFBFBD><D6A3>ϼ<EFBFBD> " + (Decimal.Parse(MYDT.Tables[0].Rows[0]["PanDuanNum"].ToString()) * Decimal.Parse(Model.PanDuanFenShu.ToString())).ToString() + " <3B>֡<EFBFBD>";
|
|||
|
|
this.lblDanXuanTiList.Text = "<22><> " + MYDT.Tables[0].Rows[0]["DanXuanNum"].ToString() + " <3B>⣬ÿ<E2A3AC><C3BF> " + Model.DanXuanFenShu.ToString() + " <3B>֣<EFBFBD><D6A3>ϼ<EFBFBD> " + (Decimal.Parse(MYDT.Tables[0].Rows[0]["DanXuanNum"].ToString()) * Decimal.Parse(Model.DanXuanFenShu.ToString())).ToString() + " <3B>֡<EFBFBD>";
|
|||
|
|
this.lblDuoXuanTiList.Text = "<22><> " + MYDT.Tables[0].Rows[0]["DuoXuanNum"].ToString() + " <3B>⣬ÿ<E2A3AC><C3BF> " + Model.DuoXuanFenShu.ToString() + " <3B>֣<EFBFBD><D6A3>ϼ<EFBFBD> " + (Decimal.Parse(MYDT.Tables[0].Rows[0]["DuoXuanNum"].ToString()) * Decimal.Parse(Model.DuoXuanFenShu.ToString())).ToString() + " <3B>֡<EFBFBD>";
|
|||
|
|
this.lblTianKongTiList.Text = "<22><> " + MYDT.Tables[0].Rows[0]["TianKongNum"].ToString() + " <3B>⣬ÿ<E2A3AC><C3BF> " + Model.TianKongFenShu.ToString() + " <3B>֣<EFBFBD><D6A3>ϼ<EFBFBD> " + (Decimal.Parse(MYDT.Tables[0].Rows[0]["TianKongNum"].ToString()) * Decimal.Parse(Model.TianKongFenShu.ToString())).ToString() + " <3B>֡<EFBFBD>";
|
|||
|
|
this.lblJianDaTiList.Text = "<22><> " + MYDT.Tables[0].Rows[0]["JianDaNum"].ToString() + " <3B>⣬ÿ<E2A3AC><C3BF> " + Model.JianDaFenShu.ToString() + " <3B>֣<EFBFBD><D6A3>ϼ<EFBFBD> " + (Decimal.Parse(MYDT.Tables[0].Rows[0]["JianDaNum"].ToString()) * Decimal.Parse(Model.JianDaFenShu.ToString())).ToString() + " <3B>֡<EFBFBD>";
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
this.lblPanDuanFenShu.Text=Model.PanDuanFenShu.ToString();
|
|||
|
|
this.lblDanXuanFenShu.Text=Model.DanXuanFenShu.ToString();
|
|||
|
|
this.lblDuoXuanFenShu.Text=Model.DuoXuanFenShu.ToString();
|
|||
|
|
this.lblTianKongFenShu.Text=Model.TianKongFenShu.ToString();
|
|||
|
|
this.lblJianDaFenShu.Text=Model.JianDaFenShu.ToString();
|
|||
|
|
this.lblBackInfo.Text=Model.BackInfo.ToString();
|
|||
|
|
this.lblUserName.Text=Model.UserName.ToString();
|
|||
|
|
this.lblTimeStr.Text=Model.TimeStr.ToString();
|
|||
|
|
|
|||
|
|
//дϵͳ<CFB5><CDB3>־
|
|||
|
|
ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi();
|
|||
|
|
MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName");
|
|||
|
|
MyRiZhi.DoSomething = "<22>û<EFBFBD><C3BB>鿴<EFBFBD>Ծ<EFBFBD><D4BE><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ(" + this.lblShiJuanTitle.Text + ")";
|
|||
|
|
MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString();
|
|||
|
|
MyRiZhi.Add();
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
public string GetShiTiList(string IDList)
|
|||
|
|
{
|
|||
|
|
string ReturnStr = "";
|
|||
|
|
//<2F><><EFBFBD><EFBFBD>Ŀ<EFBFBD>Լ<EFBFBD><D4BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>г<EFBFBD>
|
|||
|
|
DataSet MYDT = ZWL.DBUtility.DbHelperSQL.GetDataSet("select * from ERPTiKu where ID in('" + IDList.Replace(",", "','") + "')");
|
|||
|
|
for (int i = 0; i < MYDT.Tables[0].Rows.Count; i++)
|
|||
|
|
{
|
|||
|
|
int TempNum = i + 1;
|
|||
|
|
ReturnStr = ReturnStr + "<br>"+TempNum.ToString() + "<22><>" + MYDT.Tables[0].Rows[i]["TitleStr"].ToString();
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
return ReturnStr;
|
|||
|
|
}
|
|||
|
|
}
|