void InitData() { var l = new BLL.BGongSi().GetGongSis(intPageSize, intPageIndex, ref intRecordCount, this.GetChaXun()); if (l != null && l.Count > 0) { rpt.DataSource = l; rpt.DataBind(); } }
void InitData() { var l = new BLL.BGongSi().GetGongSis(pageSize, pageIndex, ref recordCount, this.GetChaXun()); if (l != null && l.Count > 0) { rpt.DataSource = l; rpt.DataBind(); ph.Visible = false; } }
void Save() { var b = new BLL.BGongSi(); var r = string.IsNullOrEmpty(GongSiId) ? b.GongSi_C(this.GetForm()) : b.GongSi_U(this.GetForm()); switch (r) { default: Utils.RCWE_AJAX("0", "保存失败"); break; case 1: Utils.RCWE_AJAX("1", "保存成功"); break; } }
void InitData() { var m = new BLL.BGongSi().GetInfo(GongSiId); if (m != null) { T = m.LeiXing; Name.Value = m.Name; FanRenName.Value = m.FanRenName; DiZhi.Value = m.DiZhi; IList <uploadfile.MFileInfo> f = new List <uploadfile.MFileInfo>(); if (!string.IsNullOrEmpty(m.YingYeZhiZhaoFilepath)) { f.Add(new uploadfile.MFileInfo() { Filepath = m.YingYeZhiZhaoFilepath }); YingYeZhiZhaoFilepath.YuanFiles = f; } f.Clear(); if (!string.IsNullOrEmpty(m.ZuZhiJiGouFilepath)) { f.Add(new uploadfile.MFileInfo() { Filepath = m.ZuZhiJiGouFilepath }); ZuZhiJiGouFilepath.YuanFiles = f; } FuZeRenName.Value = m.FuZeRenName; FuZeRenDianHua.Value = m.FuZeRenDianHua; FuZeRenShenFenZhengHao.Value = m.FuZeRenShenFenZhengHao; f.Clear(); if (!string.IsNullOrEmpty(m.FuZeRenZhaoPianFilepath)) { f.Add(new uploadfile.MFileInfo() { Filepath = m.FuZeRenZhaoPianFilepath }); FuZeRenZhaoPianFilepath.YuanFiles = f; } CaiWuName.Value = m.CaiWuName; CaiWuDianHua.Value = m.CaiWuDianHua; CaiWuShenFenZhengHao.Value = m.CaiWuShenFenZhengHao; f.Clear(); if (!string.IsNullOrEmpty(m.CaiWuZhaoPianFilepath)) { f.Add(new uploadfile.MFileInfo() { Filepath = m.CaiWuZhaoPianFilepath }); CaiWuZhaoPianFilepath.YuanFiles = f; } CaoZuoRen.Value = m.CaoZuoRenName; IssueTime.Value = m.IssueTime.ToString("yyyy-MM-dd HH:mm"); txtLxQQ.Value = m.LxQQ; phShenHe.Visible = m.ShenHeStatus == ShenHeStatus.未审核; } else { CaoZuoRen.Value = YongHuInfo.Name; IssueTime.Value = DateTime.Now.ToString(); } }