protected void lkAdd_Click(object sender, EventArgs e) { string strEmptyWeightID = this.gdvList.DataKeys[Convert.ToInt32(this.hdKey.Value)].Value.ToString(); TT_CarInfo tt_empty = new TT_CarInfo(); TDTK.IndustryPlatform.CoalTraffic.BLL.TT_CarInfo bllempty = new TDTK.IndustryPlatform.CoalTraffic.BLL.TT_CarInfo(); tt_empty = bllempty.GetModel(strEmptyWeightID); string strReturnValue = ""; if (tt_empty != null) { strReturnValue= strEmptyWeightID + "|" + tt_empty.CarNo + "|" + tt_empty.CarType + "|" + tt_empty.EmptyWeight + "|" + tt_empty.MostWeight + "|" + tt_empty.CarHight + "|" + tt_empty.CarLength + "|" + tt_empty.CarWidth; } ScriptManager.RegisterStartupScript(this.UpdatePanel1,Page.GetType(), "", "this.top.currForm.returnvalue='" + strReturnValue + "';this.top.currForm.close();", true); }
public static string GetEmptyWeightInfo(string strCarCode) { TT_CarInfo tt_empty = new TT_CarInfo(); TDTK.IndustryPlatform.CoalTraffic.BLL.TT_CarInfo bllempty = new TDTK.IndustryPlatform.CoalTraffic.BLL.TT_CarInfo(); tt_empty = bllempty.GetModel(strCarCode); if (tt_empty != null) { return strCarCode + "|" + tt_empty.CarNo + "|" + tt_empty.CarType + "|" + tt_empty.EmptyWeight + "|" + tt_empty.MostWeight; } else { return ""; } }