private void method_22() { this.TableName = "SurveySync"; SurveySyncDal surveySyncDal = new SurveySyncDal(); this.lSurveySync = surveySyncDal.GetList(); this.DataGrid1.ItemsSource = this.lSurveySync; }
public void AddSurvyeSync(string string_0, string string_1, int int_0) { SurveyMain bySurveyId = this.oSurveyMainDal.GetBySurveyId(string_0); SurveySync surveySync = new SurveySync(); surveySync.SURVEY_ID = string_0; surveySync.SURVEY_GUID = bySurveyId.SURVEY_GUID; surveySync.SYNC_DATE = new DateTime?(DateTime.Now); surveySync.SYNC_NOTE = string_1; surveySync.SYNC_STATE = int_0; SurveySyncDal surveySyncDal = new SurveySyncDal(); surveySyncDal.Add(surveySync); }
public bool CheckUploadSync(string string_0) { bool result = false; SurveyMain bySurveyId = this.oSurveyMainDal.GetBySurveyId(string_0); SurveySyncDal surveySyncDal = new SurveySyncDal(); if (surveySyncDal.CheckObjectExist(string_0, bySurveyId.SURVEY_GUID)) { SurveySync bySuveyID_GUID = surveySyncDal.GetBySuveyID_GUID(string_0, bySurveyId.SURVEY_GUID); if (bySuveyID_GUID.SYNC_STATE == 1) { result = true; } } return(result); }