private void initdevice(sd_xsjh xsjh) { mTable.Rows.Clear(); mTable.Rows.Add(hide, "0", xsjh.LineName + xsjh.xsnr, xsjh.ID, "0", "1"); sd_xl xl = Client.ClientHelper.PlatformSqlMap.GetOneByKey<sd_xl>(xsjh.LineID); if (xl != null) { showLayer(xl.LineCode, true); mRMap.LocationOverlay(xl.LineCode); } dateEdit1.DateTime = xsjh.xskssj; dateEdit2.DateTime = xsjh.xswcsj; }
public void InitLayer(sd_xsjh xsjh) { treeList1.BeginInit(); initdevice(xsjh); treeList1.EndInit(); }
/// <summary> /// 显示单线图 /// </summary> /// <param name="lineCode">线路代码</param> internal static void Playback(sd_xsjh jh) { Ebada.Client.Platform.MainHelper.Execute(gislib, gisclass, "PlaybackXsgj", new object[] { jh }); }
public void PlaybackXsgj(sd_xsjh jh) { frmMapSbxj frm = new frmMapSbxj(); frm.xsjh = jh; frm.ShowDialog(); }
private void btAdds_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { sd_xsjh xsjh = new sd_xsjh(); xsjh.cjr = MainHelper.User.UserName; if (checkState == "01") { xsjh.wcbj = "未完成"; xsjh.flag = "新建"; } else if (checkState == "02") { xsjh.wcbj = "完成"; xsjh.flag = "发布"; } xsjh.fbr = MainHelper.User.UserName; frmsdxs_jh frm = new frmsdxs_jh(); frm.RowData = xsjh; if (frm.ShowDialog() == DialogResult.OK) { Client.ClientHelper.PlatformSqlMap.Create<sd_xsjh>(frm.RowData); RefreshData(); } }