DS7_JingHan
hanxuntao 2 years ago
parent cd2d74b9bc
commit 27c698f599

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<LastActiveSolutionConfig>Release|Any CPU</LastActiveSolutionConfig>
<LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig>
<NameOfLastUsedPublishProfile>FolderProfile</NameOfLastUsedPublishProfile>
<UseIISExpress>true</UseIISExpress>
<Use64BitIISExpress />

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<LastActiveSolutionConfig>Release|Any CPU</LastActiveSolutionConfig>
<LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig>
<UseIISExpress>true</UseIISExpress>
<Use64BitIISExpress />
<IISExpressSSLPort />

@ -5782,14 +5782,14 @@ namespace DSWeb.MvcShipping.DAL.Chfee_AuditDAL
if (string.IsNullOrEmpty(head.PROFITSTATUS)) {
result.Success = false;
result.Message = "无需发送邮件!";
return result;
}
var mailaddr = MsSysParamSetDAL.GetData("PARAMNAME='RptLrMail'").PARAMVALUE;
if (string.IsNullOrEmpty(mailaddr))
{
result.Success = false;
result.Message = "无需发送邮件!";
return result;
}
var htmlfile = HttpContext.Current.Server.MapPath("../../EDIFiles/报表利润情况说明.html");

@ -9116,14 +9116,14 @@ namespace DSWeb.MvcShipping.DAL.MsOpSeaeDAL
headData.ISSUEPLACE= strtmp;
}
aaa = mySheet.Cells.get_Range("E23").Value2;
v11new = aaa;
if (v11new != null)
{
strtmp = v11new.ToString();
if (strtmp != "")
headData.PREPARDAT = strtmp;
}
//aaa = mySheet.Cells.get_Range("E23").Value2;
//v11new = aaa;
//if (v11new != null)
//{
// strtmp = v11new.ToString();
// if (strtmp != "")
// headData.PREPARDAT = strtmp;
//}
aaa = mySheet.Cells.get_Range("B24").Value2;
v11new = aaa;
if (v11new != null)
@ -9132,24 +9132,26 @@ namespace DSWeb.MvcShipping.DAL.MsOpSeaeDAL
if (strtmp != "")
headData.CONTRACTNO = strtmp;
}
aaa = mySheet.Cells.get_Range("E24").Value2;
v11new = aaa;
var cntr = "";
if (v11new != null)
{
strtmp = v11new.ToString();
if (strtmp != "")
{
headData.CNTRTOTAL = strtmp;
if (strtmp.IndexOf("X") > 0) {
var cntrlist = strtmp.Split('X');
if (cntrlist != null && cntrlist.Length >= 2)
cntr = cntrlist[1];
//aaa = mySheet.Cells.get_Range("E24").Value2;
//v11new = aaa;
//var cntr = "";
//if (v11new != null)
//{
// strtmp = v11new.ToString();
// if (strtmp != "")
// {
// headData.CNTRTOTAL = strtmp;
// if (strtmp.IndexOf("X") > 0) {
// var cntrlist = strtmp.Split('X');
// if (cntrlist != null && cntrlist.Length >= 2)
// cntr = cntrlist[1];
// cntr = cntr.Replace("'","");
// if (cntr.Length > 4) cntr = cntr.Substring(4);
}
// }
}
}
// }
//}
for (var i = 0; i < 22; i++)
@ -9294,15 +9296,17 @@ namespace DSWeb.MvcShipping.DAL.MsOpSeaeDAL
{
MsOpSeaeDetail data = new MsOpSeaeDetail();
data.BSNO = bsno;
//data.CTNALL = GetExcelValue(mySheet, "C" + j.ToString());
data.CTNALL = cntr;
//var cntrstr = GetExcelValue(mySheet, "H" + j.ToString());
//if (!string.IsNullOrEmpty(cntrstr)) data.CTNALL = cntrstr;
//else
// data.CTNALL = cntr;
data.CNTRNO = GetExcelValue(mySheet, "I" + j.ToString());
data.SEALNO = GetExcelValue(mySheet, "G" + j.ToString());
data.SEALNO = GetExcelValue(mySheet, "J" + j.ToString());
try
{
data.PKGS = Convert.ToInt32(GetExcelValue(mySheet, "L" + j.ToString()));
data.KGS = Convert.ToDecimal(GetExcelValue(mySheet, "M" + j.ToString()));
data.CBM = Convert.ToDecimal(GetExcelValue(mySheet, "N" + j.ToString()));
data.PKGS = Convert.ToInt32(GeNumValue(GetExcelValue(mySheet, "L" + j.ToString())));
data.KGS = Convert.ToDecimal(GeNumValue(GetExcelValue(mySheet, "M" + j.ToString())));
data.CBM = Convert.ToDecimal(GeNumValue(GetExcelValue(mySheet, "N" + j.ToString())));
}
catch (Exception exception)
{
@ -9353,6 +9357,36 @@ namespace DSWeb.MvcShipping.DAL.MsOpSeaeDAL
return result;
}
public static string GeNumValue(string Local)
{
var str = Local.Trim();
var result = "0";
if (str == null || str == "") return result;
if (str.Length == 0) return result;
var if_find = false;
var str_num = "";
for (var i = 0; i < str.Length; i += 1)
{
var member = str.Substring(i, 1);
if ((member == "0") || (member == "1") || (member == "2") || (member == "3")
|| (member == "4") || (member == "5") || (member == "6") || (member == "7")
|| (member == "8") || (member == "9") || (member == "."))
{
if (!if_find)
{
str_num = str_num + member;
}
}
else
{
if_find = true;
}
}
result = str_num;
return result;
}
#endregion
//

@ -25242,13 +25242,13 @@ namespace DSWeb.MvcShipping.DAL.MsOpSeaeEdiPortDAL
tempstr = "11";//1//RECORD-ID//M//9(2)//1//2//11//
tempstr += GetSpaceStr("", 1);//2//Filler//M//X(1)//3//3//Spaces//
if (bill.VOYNO.ToString().Trim().Length < 4)
if (bill.VESSELID.ToString().Trim().Length < 4)
{
tempstr += GetSpaceStr(bill.VOYNO.ToString().Trim(), 10);//3//Vessel Code//M//X(10)//4//13//和vessel有关的即field 4和 field 3 都必填
tempstr += GetSpaceStr(bill.VESSELID.ToString().Trim(), 10);//3//Vessel Code//M//X(10)//4//13//和vessel有关的即field 4和 field 3 都必填
}
else
{
tempstr += GetSpaceStr(bill.VOYNO.ToString().Trim().Substring(0, 4), 10);//3//Vessel Code//M//X(10)//4//13//和vessel有关的即field 4和 field 3 都必填
tempstr += GetSpaceStr(bill.VESSELID.ToString().Trim().Substring(0, 4), 10);//3//Vessel Code//M//X(10)//4//13//和vessel有关的即field 4和 field 3 都必填
}
tempstr += GetSpaceStr(bill.VESSEL, 20);//4//Vessel Name//M//X(20)//14//33//和vessel有关的即field 4和 field 3 都必填
tempstr += GetSpaceStr("", 8);//5//Voyage No.//M//X(8)//34//41//Alternate Voyage Reference (Commercial voyage)//但是和voyage有关的即field 5和field 8不用填//不用填
@ -25717,7 +25717,7 @@ namespace DSWeb.MvcShipping.DAL.MsOpSeaeEdiPortDAL
tempstr += GetSpaceStr(ctn.CTNNUM.ToString(), 6, "0");//6 //No of packages/Containers//M//9(6)//19 //24 //Number of Containers for the cargo line
tempstr += GetSpaceStr(ctn.TEU.ToString(), 4, "0");//7 //TEU Utilisation//C//9(4)//25 //28 //Actual TEU utilised, eg. OOG's slot kill or Flatrack bundled units
tempstr += GetSpaceStr((ctn.KGS * 1000).ToString(), 11, "0");//8 //Cargo Gross Weight//C//9(8)v999//29 //39 //Mandatory, except for Empties
tempstr += GetSpaceStr((ctn.KGS * 1000).ToString(), 11, "0");//9 //Cargo Nett Weight//C//9(8)v999//40 //50 //Mandatory, except for Empties
tempstr += GetSpaceStr("0", 11, "0");//9 //Cargo Nett Weight//C//9(8)v999//40 //50 //Mandatory, except for Empties
tempstr += GetSpaceStr((ctn.CBM * 1000).ToString(), 10, "0");//10 //Cargo Gross Measurement//C//9(7)v999//51 //60 //Mandatory, except for Empties
tempstr += GetSpaceStr("", 10, "0");//11 //Cargo Nett Measurement//C//9(7)v999//61 //70 //Mandatory, except for Empties
tempstr += GetSpaceStr(bill.GOODSNAME, 48);//12 //Commodity Name//O//X(48)//71 //118 //
@ -26019,7 +26019,7 @@ namespace DSWeb.MvcShipping.DAL.MsOpSeaeEdiPortDAL
tempstr += GetSpaceStr(ctn.CTNNUM.ToString(), 6, "0");//6 //No of packages/Containers//M//9(6)//19 //24 //Number of Containers for the cargo line
tempstr += GetSpaceStr(ctn.TEU.ToString(), 4, "0");//7 //TEU Utilisation//C//9(4)//25 //28 //Actual TEU utilised, eg. OOG's slot kill or Flatrack bundled units
tempstr += GetSpaceStr((ctn.KGS * 1000).ToString(), 11, "0");//8 //Cargo Gross Weight//C//9(8)v999//29 //39 //Mandatory, except for Empties
tempstr += GetSpaceStr((ctn.KGS * 1000).ToString(), 11, "0");//9 //Cargo Nett Weight//C//9(8)v999//40 //50 //Mandatory, except for Empties
tempstr += GetSpaceStr("0", 11, "0");//9 //Cargo Nett Weight//C//9(8)v999//40 //50 //Mandatory, except for Empties
tempstr += GetSpaceStr((ctn.CBM * 1000).ToString(), 10, "0");//10 //Cargo Gross Measurement//C//9(7)v999//51 //60 //Mandatory, except for Empties
tempstr += GetSpaceStr((ctn.CBM * 1000).ToString(), 10, "0");//11 //Cargo Nett Measurement//C//9(7)v999//61 //70 //Mandatory, except for Empties
tempstr += GetSpaceStr(bill.GOODSNAME, 48);//12 //Commodity Name//O//X(48)//71 //118 //

@ -14051,9 +14051,9 @@ Ext.extend(Shipping.MsOpSeaeEdit, Ext.Panel, {
this.gridListCellEditing.startEditByPosition({ row: n - 1, column: 4 });
this.setAllTotal();
var KGS = this.formEdit.getForm().findField('KGS').getValue();
this.formEdit.getForm().findField('GROSSWEIGHT').setValue(KGS + 'KGS');
//this.formEdit.getForm().findField('GROSSWEIGHT').setValue(KGS + 'KGS');
var CBM = this.formEdit.getForm().findField('CBM').getValue();
this.formEdit.getForm().findField('MEASUREMENT').setValue(CBM + 'CBM');
//this.formEdit.getForm().findField('MEASUREMENT').setValue(CBM + 'CBM');
var PKGS = this.formEdit.getForm().findField('PKGS').getValue();
var sKINDPKGS = this.formEdit.getForm().findField('KINDPKGS').getValue();
this.formEdit.getForm().findField('NOPKGS').setValue(PKGS + sKINDPKGS);
@ -14465,9 +14465,9 @@ Ext.extend(Shipping.MsOpSeaeEdit, Ext.Panel, {
};
this.setAllTotal();
var KGS = this.formEdit.getForm().findField('KGS').getValue();
this.formEdit.getForm().findField('GROSSWEIGHT').setValue(KGS + 'KGS');
//this.formEdit.getForm().findField('GROSSWEIGHT').setValue(KGS + 'KGS');
var CBM = this.formEdit.getForm().findField('CBM').getValue();
this.formEdit.getForm().findField('MEASUREMENT').setValue(CBM + 'CBM');
//this.formEdit.getForm().findField('MEASUREMENT').setValue(CBM + 'CBM');
var PKGS = this.formEdit.getForm().findField('PKGS').getValue();
var sKINDPKGS = this.formEdit.getForm().findField('KINDPKGS').getValue();
this.formEdit.getForm().findField('NOPKGS').setValue(PKGS + sKINDPKGS);
@ -14765,7 +14765,7 @@ Ext.extend(Shipping.MsOpSeaeEdit, Ext.Panel, {
}
}
me.formEdit.getForm().findField('NOPKGS').setValue(PKGS + sKINDPKGS);
//me.formEdit.getForm().findField('NOPKGS').setValue(PKGS + sKINDPKGS);
me.formEdit.getForm().findField('TOTALNO').setValue('SAY:' + ToEn(PKGS).toUpperCase() + ' ' + sKINDPKGS + ' ONLY.');
}
});
@ -14972,7 +14972,7 @@ Ext.extend(Shipping.MsOpSeaeEdit, Ext.Panel, {
}
}
me.formEdit.getForm().findField('NOPKGS').setValue(PKGS + sKINDPKGS);
//me.formEdit.getForm().findField('NOPKGS').setValue(PKGS + sKINDPKGS);
me.formEdit.getForm().findField('TOTALNO').setValue('SAY:' + ToEn(PKGS).toUpperCase() + ' ' + sKINDPKGS + ' ONLY.');
}
});

@ -4,7 +4,7 @@
<ProjectView>ShowAllFiles</ProjectView>
<NameOfLastUsedPublishProfile>FolderProfile</NameOfLastUsedPublishProfile>
<UseIISExpress>true</UseIISExpress>
<LastActiveSolutionConfig>Release|Any CPU</LastActiveSolutionConfig>
<LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig>
<Use64BitIISExpress />
<IISExpressSSLPort />
<IISExpressAnonymousAuthentication />

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<LastActiveSolutionConfig>Release|Any CPU</LastActiveSolutionConfig>
<LastActiveSolutionConfig>Debug|Any CPU</LastActiveSolutionConfig>
<UseIISExpress>true</UseIISExpress>
<Use64BitIISExpress />
<IISExpressSSLPort />

Loading…
Cancel
Save