数据库变更CNPC_XJYJ
This commit is contained in:
@@ -229,7 +229,7 @@ namespace FineUIPro.Web.HSSE.SitePerson
|
||||
{
|
||||
if (compileDate != null)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
DateTime date = Convert.ToDateTime(compileDate);
|
||||
var q = from y in db.SitePerson_DayReportDetail
|
||||
where
|
||||
@@ -255,7 +255,7 @@ namespace FineUIPro.Web.HSSE.SitePerson
|
||||
{
|
||||
if (compileDate != null)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
DateTime date = Convert.ToDateTime(compileDate);
|
||||
var q = from y in db.SitePerson_DayReportDetail where (from z in db.SitePerson_DayReport where z.CompileDate <= date && z.ProjectId == this.CurrUser.LoginProjectId select z.DayReportId).Contains(y.DayReportId) select y;
|
||||
if (q.Count() > 0)
|
||||
|
||||
@@ -76,7 +76,7 @@ namespace FineUIPro.Web.HSSE.SitePerson
|
||||
/// </summary>
|
||||
private void BindGrid()
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
var q = from x in db.SitePerson_DayReportDetail
|
||||
join a in db.SitePerson_DayReport
|
||||
on x.DayReportId equals a.DayReportId
|
||||
|
||||
@@ -134,7 +134,7 @@ namespace FineUIPro.Web.SitePerson
|
||||
/// </summary>
|
||||
private void BindGrid()
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
if (this.nowData == "-1")
|
||||
{
|
||||
var q = (from x in db.SitePerson_DayReportDetail
|
||||
|
||||
@@ -77,7 +77,7 @@ namespace FineUIPro.Web.HSSE.SitePerson
|
||||
/// </summary>
|
||||
private void BindGrid()
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
|
||||
{
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(this.MonthReportId))
|
||||
|
||||
@@ -58,7 +58,7 @@ namespace FineUIPro.Web.HSSE.SitePerson
|
||||
/// </summary>
|
||||
private void BindGrid()
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
|
||||
{
|
||||
string unitId = string.Empty;
|
||||
string projectId = string.Empty;
|
||||
|
||||
@@ -394,7 +394,7 @@ namespace FineUIPro.Web.HSSE.SitePerson
|
||||
/// <param name="e"></param>
|
||||
protected void btnSave_Click(object sender, EventArgs e)
|
||||
{
|
||||
Model.SGGLDB db = Funs.DB;
|
||||
Model.CNPCDB db = Funs.DB;
|
||||
var allPersons = from x in db.SitePerson_Person select x;
|
||||
//var persons = db.SitePerson_Person
|
||||
// .GroupBy(x => x.IdentityCard)
|
||||
|
||||
@@ -217,7 +217,7 @@ namespace FineUIPro.Web.HSSE.SitePerson
|
||||
/// </summary>
|
||||
private void BindGrid()
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
|
||||
{
|
||||
if (this.tvProjectAndUnit != null && !string.IsNullOrEmpty(this.tvProjectAndUnit.SelectedNodeID))
|
||||
{
|
||||
|
||||
@@ -154,7 +154,7 @@ namespace FineUIPro.Web.HSSE.SitePerson
|
||||
/// </summary>
|
||||
private void BindGrid()
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
|
||||
{
|
||||
|
||||
string strSql = "select b.ProjectName , a.* from View_SitePerson_PersonList a left join Base_Project b on a.ProjectId = b.ProjectId Where ";
|
||||
|
||||
@@ -241,7 +241,7 @@ namespace FineUIPro.Web.HSSE.SitePerson
|
||||
/// <returns></returns>
|
||||
protected string ConvertTrainResult(object PersonId)
|
||||
{
|
||||
using (Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString))
|
||||
using (Model.CNPCDB db = new Model.CNPCDB(Funs.ConnString))
|
||||
{
|
||||
string result = string.Empty;
|
||||
if (PersonId != null)
|
||||
|
||||
Reference in New Issue
Block a user