This commit is contained in:
2025-05-08 13:49:43 +08:00
parent a4976430a8
commit 8af0c7f62a
3 changed files with 75 additions and 187 deletions

View File

@@ -916,28 +916,28 @@ namespace Pilot_KD_Parino.QPHY_AutoWrire
if(benci==0)
continue;
this.View.Model.CreateNewEntryRow("FEntity2");
this.View.Model.SetValue("FROWID", Guid.NewGuid().ToString(), Rowindex + 1);
this.View.Model.SetValue("FPARENTROWID", FROWID, Rowindex + 1);
this.View.Model.SetValue("FBILLNO2", tempList2[i].FBIllNO, Rowindex + 1);
this.View.Model.SetValue("FROWID", Guid.NewGuid().ToString(), Rowindex );
this.View.Model.SetValue("FPARENTROWID", FROWID, Rowindex );
this.View.Model.SetValue("FBILLNO2", tempList2[i].FBIllNO, Rowindex );
if (DateTime.TryParseExact(tempList2[i].FDate, dateFormat, CultureInfo.InvariantCulture, DateTimeStyles.None, out DateTime parsedDate))
{
this.View.Model.SetValue("FDate2", tempList2[i].FDate, Rowindex + 1);
this.View.Model.SetValue("FDate2", tempList2[i].FDate, Rowindex );
}
else
{
this.View.Model.SetValue("FDate2", DateTime.Now.AddDays(-1 * Convert.ToInt32(tempList2[i].FDate)).ToString("yyyy-MM-dd"), Rowindex + 1);
this.View.Model.SetValue("FDate2", DateTime.Now.AddDays(-1 * Convert.ToInt32(tempList2[i].FDate)).ToString("yyyy-MM-dd"), Rowindex );
}
this.View.Model.SetValue("F_MBBA_Decimal_imu", tempList2[i].FALLAMOUNT, Rowindex + 1);
this.View.Model.SetValue("FClient2", tempList2[i].FClient, Rowindex + 1);
this.View.Model.SetValue("F_RowNew", 2, Rowindex + 1);
this.View.Model.SetValue("FCreated2", tempList2[i].FCreated, Rowindex + 1);
this.View.Model.SetValue("FCONTRACTNUMBER2", tempList2[i].FCONTRACTNUMBER, Rowindex + 1);
this.View.Model.SetValue("FSalesman2", tempList2[i].FSalesman, Rowindex + 1);
this.View.Model.SetValue("F_MBBA_Decimal_qtr", tempList2[i].FDAMOUNT, Rowindex + 1);
this.View.Model.SetValue("F_PendingAmount", tempList2[i].FDAMOUNT, Rowindex + 1);
this.View.Model.SetValue("F_BenCi", benci, Rowindex + 1);
this.View.Model.SetValue("F_MBBA_Decimal_3iy", tempList2[i].FYAMOUNT, Rowindex + 1);
this.View.Model.SetValue("F_ISHX", false, Rowindex + 1);
this.View.Model.SetValue("F_MBBA_Decimal_imu", tempList2[i].FALLAMOUNT, Rowindex );
this.View.Model.SetValue("FClient2", tempList2[i].FClient, Rowindex );
this.View.Model.SetValue("F_RowNew", 2, Rowindex );
this.View.Model.SetValue("FCreated2", tempList2[i].FCreated, Rowindex );
this.View.Model.SetValue("FCONTRACTNUMBER2", tempList2[i].FCONTRACTNUMBER, Rowindex );
this.View.Model.SetValue("FSalesman2", tempList2[i].FSalesman, Rowindex );
this.View.Model.SetValue("F_MBBA_Decimal_qtr", tempList2[i].FDAMOUNT, Rowindex );
this.View.Model.SetValue("F_PendingAmount", tempList2[i].FDAMOUNT, Rowindex );
this.View.Model.SetValue("F_BenCi", benci, Rowindex );
this.View.Model.SetValue("F_MBBA_Decimal_3iy", tempList2[i].FYAMOUNT, Rowindex );
this.View.Model.SetValue("F_ISHX", false, Rowindex );
}