optimize
wet 2 years ago
parent 6def95f3f6
commit 1085cbd1e1

@ -2703,52 +2703,52 @@ namespace Myshipping.Application
row.CreateCell(_cellNum - 1).SetCellValue(value);
}
}
}
if (name.Split('.')[0].ToLower() == "order" && name.Split('.')[1].ToLower() == "_PKGS")
{
ICell cell = row.GetCell(_cellNum - 1);
if (cell != null)
{
row.Cells[_cellNum - 1].SetCellValue(order.PKGS + "("+order.KINDPKGS + ")");
}
else
if (name.Split('.')[0].ToLower() == "order" && name.Split('.')[1].ToLower() == "_PKGS"&& _name== "_PKGS")
{
row.CreateCell(_cellNum - 1).SetCellValue(order.PKGS + "(" + order.KINDPKGS + ")");
}
}
if (name.Split('.')[0].ToLower() == "order" && name.Split('.')[1].ToLower() == "_KGS")
{
ICell cell = row.GetCell(_cellNum - 1);
if (cell != null)
{
row.Cells[_cellNum - 1].SetCellValue(order.KGS + "(KGS)");
ICell cell = row.GetCell(_cellNum - 1);
if (cell != null)
{
row.Cells[_cellNum - 1].SetCellValue(order.PKGS + "(" + order.KINDPKGS + ")");
}
else
{
row.CreateCell(_cellNum - 1).SetCellValue(order.PKGS + "(" + order.KINDPKGS + ")");
}
}
else
if (name.Split('.')[0].ToLower() == "order" && name.Split('.')[1].ToLower() == "_KGS"&& _name == "_KGS")
{
row.CreateCell(_cellNum - 1).SetCellValue(order.KGS + "(KGS)");
}
ICell cell = row.GetCell(_cellNum - 1);
if (cell != null)
{
row.Cells[_cellNum - 1].SetCellValue(order.KGS + "(KGS)");
}
else
{
row.CreateCell(_cellNum - 1).SetCellValue(order.KGS + "(KGS)");
}
}
if (name.Split('.')[0].ToLower() == "order" && name.Split('.')[1].ToLower() == "_CBM")
{
ICell cell = row.GetCell(_cellNum - 1);
if (cell != null)
{
row.Cells[_cellNum - 1].SetCellValue(order.CBM + "(CBM)");
}
else
if (name.Split('.')[0].ToLower() == "order" && name.Split('.')[1].ToLower() == "_CBM" && _name == "_CBM")
{
row.CreateCell(_cellNum - 1).SetCellValue(order.CBM + "(CBM)");
ICell cell = row.GetCell(_cellNum - 1);
if (cell != null)
{
row.Cells[_cellNum - 1].SetCellValue(order.CBM + "(CBM)");
}
else
{
row.CreateCell(_cellNum - 1).SetCellValue(order.CBM + "(CBM)");
}
}
}
}
if (name.Split('.')[0].ToLower() == "edi")

Loading…
Cancel
Save