PMP项目数据对接;邮箱测试
This commit is contained in:
@@ -76,6 +76,7 @@ namespace FineUIPro.Web.ProjectData
|
||||
this.drpProjectBox.Value = project.ProjectName;
|
||||
}
|
||||
//this.txtProjectName.Text = project.ProjectName;
|
||||
this.txtProjectNameEn.Text = project.ProjectNameEn;
|
||||
this.txtProjectCode.Text = project.ProjectCode;
|
||||
this.txtJTProjectCode.Text = project.JTProjectCode;
|
||||
this.txtProjectAddress.Text = project.ProjectAddress;
|
||||
@@ -94,6 +95,14 @@ namespace FineUIPro.Web.ProjectData
|
||||
{
|
||||
this.txtEndDate.Text = string.Format("{0:yyyy-MM-dd}", project.EndDate);
|
||||
}
|
||||
if (project.PlanStartDate.HasValue)
|
||||
{
|
||||
this.txtPlanStartDate.Text = string.Format("{0:yyyy-MM-dd}", project.PlanStartDate);
|
||||
}
|
||||
if (project.PlanEndDate.HasValue)
|
||||
{
|
||||
this.txtPlanEndDate.Text = string.Format("{0:yyyy-MM-dd}", project.PlanEndDate);
|
||||
}
|
||||
|
||||
this.txtShortName.Text = project.ShortName;
|
||||
if (!string.IsNullOrEmpty(project.ProjectType))
|
||||
@@ -166,6 +175,9 @@ namespace FineUIPro.Web.ProjectData
|
||||
this.txtProjectMoney.Text = project.ProjectMoney.ToString();
|
||||
this.txtConstructionMoney.Text = project.ConstructionMoney.ToString();
|
||||
this.txtTelephone.Text = project.Telephone;
|
||||
this.txtStClientName.Text = project.StClientName;
|
||||
this.txtClientContactor.Text = project.ClientContactor;
|
||||
this.txtMobileTel.Text = project.MobileTel;
|
||||
if (!string.IsNullOrEmpty(project.Country))
|
||||
{
|
||||
this.drpCountry.SelectedValue = project.Country;
|
||||
@@ -208,6 +220,7 @@ namespace FineUIPro.Web.ProjectData
|
||||
{
|
||||
ProjectCode = this.txtProjectCode.Text.Trim(),
|
||||
JTProjectCode = this.txtJTProjectCode.Text.Trim(),
|
||||
ProjectNameEn = this.txtProjectNameEn.Text.Trim(),
|
||||
//ProjectName = Regex.Replace(this.txtProjectName.Text, @"\s", ""),
|
||||
ProjectAddress = this.txtProjectAddress.Text.Trim(),
|
||||
WorkRange = this.txtWorkRange.Text.Trim(),
|
||||
@@ -219,6 +232,9 @@ namespace FineUIPro.Web.ProjectData
|
||||
ConstructionMoney = Funs.GetNewDecimal(this.txtConstructionMoney.Text),
|
||||
Remark = this.txtRemark.Text.Trim(),
|
||||
Telephone = this.txtTelephone.Text.Trim(),
|
||||
StClientName = this.txtStClientName.Text.Trim(),
|
||||
ClientContactor = this.txtClientContactor.Text.Trim(),
|
||||
MobileTel = this.txtMobileTel.Text.Trim(),
|
||||
HJProjectCode = this.txtHJProjectCode.Text.Trim(),
|
||||
KZProjectCode = this.txtKZProjectCode.Text.Trim(),
|
||||
City = this.txtCity.Text.Trim(),
|
||||
@@ -262,6 +278,16 @@ namespace FineUIPro.Web.ProjectData
|
||||
project.EndDate = Funs.GetNewDateTime(this.txtEndDate.Text.Trim());
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(txtPlanStartDate.Text.Trim()))
|
||||
{
|
||||
project.PlanStartDate = Funs.GetNewDateTime(this.txtPlanStartDate.Text.Trim());
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(txtPlanEndDate.Text.Trim()))
|
||||
{
|
||||
project.PlanEndDate = Funs.GetNewDateTime(this.txtPlanEndDate.Text.Trim());
|
||||
}
|
||||
|
||||
project.ShortName = this.txtShortName.Text.Trim();
|
||||
if (this.drpProjectType.SelectedValue != BLL.Const._Null)
|
||||
{
|
||||
@@ -429,9 +455,18 @@ namespace FineUIPro.Web.ProjectData
|
||||
this.txtShortName.Text = pmpProject.ProjShortName;
|
||||
this.txtProjectAddress.Text = pmpProject.Address;
|
||||
this.txtCity.Text = pmpProject.CityName;
|
||||
this.txtStartDate.Text = pmpProject.RealStartDate != null ? ((DateTime)pmpProject.RealStartDate).ToString("yyyy-MM-dd") : "";
|
||||
this.txtEndDate.Text = pmpProject.RealEndDate != null ? ((DateTime)pmpProject.RealEndDate).ToString("yyyy-MM-dd") : "";
|
||||
//this.txtEnglishRemark.Text = pmpProject.ProjectNameEn;
|
||||
this.txtStartDate.Text = pmpProject.RealStartDate.HasValue ? string.Format("{0:yyyy-MM-dd}", pmpProject.RealStartDate) : "";
|
||||
this.txtEndDate.Text = pmpProject.RealEndDate.HasValue ? string.Format("{0:yyyy-MM-dd}", pmpProject.RealEndDate) : "";
|
||||
this.txtPlanStartDate.Text = pmpProject.PlanStartDate.HasValue ? string.Format("{0:yyyy-MM-dd}", pmpProject.PlanStartDate) : "";
|
||||
this.txtPlanEndDate.Text = pmpProject.PlanEndDate.HasValue ? string.Format("{0:yyyy-MM-dd}", pmpProject.PlanEndDate) : "";
|
||||
this.txtProjectNameEn.Text = pmpProject.ProjectNameEn;
|
||||
this.txtStClientName.Text = pmpProject.StClientName;
|
||||
this.txtClientContactor.Text = pmpProject.ClientContactor;
|
||||
this.txtMobileTel.Text = pmpProject.MobileTel;
|
||||
if (pmpProject.StLocationName == "境外")
|
||||
{
|
||||
this.ckbIsForeign.Checked = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1780,11 +1815,11 @@ namespace FineUIPro.Web.ProjectData
|
||||
|
||||
private void BindGrid2()
|
||||
{
|
||||
var lastPmpProject = (from x in Funs.DB.PMP_Project orderby x.CreateTime descending select x).FirstOrDefault();
|
||||
if (lastPmpProject == null || DateTime.Now > lastPmpProject.CreateTime.AddHours(30))
|
||||
{
|
||||
PMPDataService.GetPMPProjectMasterData();
|
||||
}
|
||||
//var lastPmpProject = (from x in Funs.DB.PMP_Project orderby x.CreateTime descending select x).FirstOrDefault();
|
||||
//if (lastPmpProject == null || DateTime.Now > lastPmpProject.CreateTime.AddHours(30))
|
||||
//{
|
||||
// PMPDataService.GetPMPProjectMasterData();
|
||||
//}
|
||||
//var pmptoken = PMPDataService.GetToken();
|
||||
var list = (from x in Funs.DB.PMP_Project orderby x.StNum descending select x).ToList();
|
||||
string codeName = ttbPmpProCodeSearch.Text.Trim();
|
||||
|
||||
Reference in New Issue
Block a user