|
|
@@ -1048,6 +1048,8 @@ func (this *OilContractController) ImportExcel() {
|
|
|
con1.ClassName = sheet.Rows[i].Cells[0].String()
|
|
|
if con1.ClassName == "买卖合同" {
|
|
|
con1.ContractClass = "01"
|
|
|
+ } else if con1.ClassName == "建设工程合同" {
|
|
|
+ con.ContractClass = "02"
|
|
|
} else {
|
|
|
con1.ContractClass = "03"
|
|
|
}
|
|
|
@@ -1099,6 +1101,9 @@ func (this *OilContractController) ImportExcel() {
|
|
|
//con1.SealName = sheet.Rows[i].Cells[42].String()
|
|
|
//con1.PoNumber = sheet.Rows[i].Cells[31].String()
|
|
|
//con1.ImportStatus = 0
|
|
|
+ con1.CreateOn = time.Now()
|
|
|
+ con1.CreateBy = this.User.Realname
|
|
|
+ con1.CreateUserId, _ = utils.StrTo(this.User.Id).Int()
|
|
|
svc.UpdateEntityById(con1.Id, &con1)
|
|
|
continue
|
|
|
}
|
|
|
@@ -1106,6 +1111,8 @@ func (this *OilContractController) ImportExcel() {
|
|
|
con.ClassName = sheet.Rows[i].Cells[0].String()
|
|
|
if con.ClassName == "买卖合同" {
|
|
|
con.ContractClass = "01"
|
|
|
+ } else if con.ClassName == "建设工程合同" {
|
|
|
+ con.ContractClass = "02"
|
|
|
} else {
|
|
|
con.ContractClass = "03"
|
|
|
}
|
|
|
@@ -1180,6 +1187,9 @@ func (this *OilContractController) ImportExcel() {
|
|
|
con.ImportStatus = 0
|
|
|
con.Status = 1
|
|
|
con.SettleStatus = "1"
|
|
|
+ con.CreateOn = time.Now()
|
|
|
+ con.CreateBy = this.User.Realname
|
|
|
+ con.CreateUserId, _ = utils.StrTo(this.User.Id).Int()
|
|
|
_, err = svc.InsertEntityBytbl(OilContractName, &con)
|
|
|
if err != nil {
|
|
|
fmt.Println(err)
|