/// <summary> /// 初始化 /// </summary> /// <returns></returns> public string CondByStation_Init() { DataSet ds = new DataSet(); //岗位类型. BP.GPM.StationTypes tps = new BP.GPM.StationTypes(); tps.RetrieveAll(); ds.Tables.Add(tps.ToDataTableField("StationTypes")); //岗位. BP.GPM.Stations sts = new BP.GPM.Stations(); sts.RetrieveAll(); ds.Tables.Add(sts.ToDataTableField("Stations")); //取有可能存盘的数据. int FK_MainNode = this.GetRequestValInt("FK_MainNode"); int ToNodeID = this.GetRequestValInt("ToNodeID"); Cond cond = new Cond(); string mypk = FK_MainNode + "_" + ToNodeID + "_Dir_" + ConnDataFrom.Stas.ToString(); cond.MyPK = mypk; cond.RetrieveFromDBSources(); ds.Tables.Add(cond.ToDataTableField("Cond")); return(BP.Tools.Json.DataSetToJson(ds, false)); }