You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

1016 lines
59 KiB

using Swift.DAL.BL.Remit.Transaction;
using Swift.DAL.SwiftDAL;
using Swift.web.Library;
using System;
using System.Data;
using System.Text;
namespace Swift.web.Remit.Transaction.MultipleReceipt
{
public partial class MultipleReceipt : System.Web.UI.Page
{
private readonly SwiftLibrary sl = new SwiftLibrary();
private readonly ReceiptDao obj = new ReceiptDao();
public const string GridName = "MultipleReceipt";
private const string ViewFunctionId = "20191000";
string printType = "";
private const string ViewFunctionIdAgent = "40112000";
string[] transactionIds;
protected void Page_Load(object sender, EventArgs e)
{
Authenticate();
if (!IsPostBack)
{
GetStatic.PrintMessage(Page);
}
FetchData();
}
private void Authenticate()
{
sl.CheckAuthentication(GetFunctionIdByUserType(ViewFunctionIdAgent, ViewFunctionId));
}
public string GetFunctionIdByUserType(string functionIdAgent, string functionIdAdmin)
{
return (GetStatic.GetUserType() == "HO") ? functionIdAdmin : functionIdAgent;
}
public void FetchData()
{
string tranId = GetStatic.ReadSession("tranIds", "");
printType = GetStatic.ReadSession("copyType", "");
//if (string.IsNullOrEmpty(tranId))
//{
// DbResult dbRes = new DbResult
// {
// ErrorCode = "1",
// Msg = "No transaction selected"
// };
// GetStatic.SetMessage(dbRes);
// Response.Redirect("");
//}
DataTable tranData = obj.GetMultipleReceiptData(GetStatic.GetUser(), tranId);
PrepareHtml(tranData);
}
public void PrepareHtml(DataTable tranData)
{
var sb = new StringBuilder("");
int noOfRows = 0;
if (tranData.Rows.Count <= 0 || tranData.Rows == null)
{
sb.AppendLine("<tr>");
sb.AppendLine("<td colspan='6' align='center'>");
sb.AppendLine("No Data To Display ");
sb.AppendLine("</td>");
sb.AppendLine("</tr>");
// tblMain.InnerHtml = sb.ToString();
return;
}
foreach (DataRow dr in tranData.Rows)
{
noOfRows = ++noOfRows;
sb.AppendLine((GenerateReceipt1(dr, noOfRows)));
}
rpt_grid.InnerHtml = sb.ToString();
}
public string GenerateReceipt(DataRow dr, int noOfRows)
{
string msg = "私は、本依頼書に記載されているジャパンマネーエクスプレス株式会社の「海外送金利用規約」の内容に同意します。<br />";
msg += "私の依頼する送金は、北朝鮮及びイランとは関係無い取引であり、反社会勢力と一切の関りはありません。<br />";
msg += "私は「外内国の重要な公的な地位にある者」ではありません。<br />";
msg += "また申込書に表示された内容について間違いが無い事を確認した上で、JME送金サービスの利用を依頼します。<br />";
msg += " I understand and agree to the Terms and Conditions for Overseas Remittance of Japan Money Express Co., Ltd. (JME).<br />";
msg += "I confirm that this remittance has nothing to do with North Korea or Iran. I have no relation to any Anti - Social Forces or engagement in any illegal activities.<br />";
msg += "I am not Politically Exposed Persons(PEPs).<br />";
msg += "I confirm the information shown in this application to avail the remittance service is true and correct.<br />";
var sb = new StringBuilder("");
bool even = false;
if (noOfRows % 2 == 0)
{
even = true;
}
if (!even || printType.ToLower() == "both")
{
//add page break only in odd
sb.AppendLine("<P style =\"page-break-before: always\">");
}
sb.AppendLine("<table class=\"testing\" border=\"0\" width=\"100%\">");
sb.AppendLine("<tr>");
sb.AppendLine("<td>");
if (printType.ToLower() == "customer" || printType.ToLower() == "both")
{
//Customer copy
sb.AppendLine("<table width=\"100%;\" border=\"0\">");
sb.AppendLine("<!--Header-->");
sb.AppendLine("<tr>");
sb.AppendLine("<td>");
sb.AppendLine("<table width=\"100%\" border=\"0\">");
sb.AppendLine("<tr>");
sb.AppendLine("<td width=\"10%;\">");
sb.AppendLine("<div class=\"logo\">");
sb.AppendLine("<img src=\"/images/jme.png\"/>");
sb.AppendLine("</div>");
sb.AppendLine("<p>Kanto Finance Bureau License</p>");
sb.AppendLine("<p>Number:<span>0006</span></p>");
sb.AppendLine("</td>");
sb.AppendLine("<td width=\"50%;\">");
sb.AppendLine("<h3>JME Japan</h3>");
sb.AppendLine("<p>169-0073,Omori Building 4F(AB), Hyakunincho 1-10-07<p>");
sb.AppendLine("<p>Shinjuku-ku, Tokyo, japan<p>");
sb.AppendLine("<p>Tel:03-5475-3913,<span>Fax:03-5475-3913 </span><p>");
sb.AppendLine("<p>email:info @japanremit.com<p>");
sb.AppendLine("</td>");
sb.AppendLine("<td width=\"40%;\">");
sb.AppendLine("<table width=\"100%;\" border=\"0\" >");
sb.AppendLine("<tbody><tr>");
sb.AppendLine("<td colspan=\"2\" class=\"copy\" width=\"100 %;\">");
sb.AppendLine("<p style=\"text-decoration:underline; color:#ff0000;\"> Customer Request</p>");
sb.AppendLine("</td></tr></tbody></table>");
sb.AppendLine("</td>");
sb.AppendLine("</tr>");
sb.AppendLine("</table>");
sb.AppendLine("</td>");
sb.AppendLine("<td>");
sb.AppendLine("<table width=\"100%;\" border=\"0\">");
sb.AppendLine("<tr>");
sb.AppendLine("<td colspan=\"2\" class=\"copy\" width=\"100%;\">");
sb.AppendLine("<p style=\"text-decoration: underline;\">Customer Copy</p>");
sb.AppendLine("</td>");
sb.AppendLine("</tr>");
sb.AppendLine("</table>");
sb.AppendLine("</td>");
sb.AppendLine("</tr>");
sb.AppendLine("<!--body-->");
sb.AppendLine("<tr valign=\"top\">");
sb.AppendLine("<td width=\"80%;\">");
sb.AppendLine("<table width=\"100%;\">");
sb.AppendLine("<!--sender information-->");
sb.AppendLine("<tr>");
sb.AppendLine("<td>");
sb.AppendLine("<table width=\"100%;\" style=\"border: 1px solid #ccc;\">");
sb.AppendLine("<tr>");
sb.AppendLine("<td colspan=\"4\" class=\"details\" style=\"padding:0 5px;\"><h4>SENDER INFORMATION</h4></td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td width=\"16%\" valign=\"top\" style=\"padding:0 5px;\"><label>Sender Name</label></td>");
sb.AppendLine("<td width=\"28%\" valign=\"top\"><span class=\"sender-value\">" + dr["senderName"].ToString() + "</span></td>");
sb.AppendLine("<td width=\"18%\" valign=\"top\"><label>Membership Card</label></td>");
sb.AppendLine("<td width=\"28%\"><span class=\"sender-value\">" + dr["sMemId"].ToString() + "</span></td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td style=\"padding:0 5px;\"><label>Address</label></td>");
sb.AppendLine("<td colspan=\"3\"><span class=\"sender-value\">" + dr["sAddress"].ToString() + "</span></td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td style=\"padding:0 5px;\"><label>Nationality</label></td>");
sb.AppendLine("<td><span class=\"sender-value\">" + dr["sNativeCountry"].ToString() + "</span></td>");
sb.AppendLine("<td><label>Purpose</label></td>");
sb.AppendLine("<td><span class=\"sender-value\">" + dr["purpose"].ToString() + "</span></td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td style=\"padding:0 5px;\"><label>Date of birth</label></td>");
sb.AppendLine("<td><span class=\"sender-value\">" + dr["sDob"].ToString() + "</span></td>");
sb.AppendLine("<td><label>Mobile No.</label></td>");
sb.AppendLine("<td><span class=\"sender-value\">" + dr["sContactNo"].ToString() + "</span></td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td style=\"padding:0 5px;\"><label>Visa Status</label></td>");
sb.AppendLine("<td><span class=\"sender-value\">" + dr["visaStatus"].ToString() + "</span></td>");
sb.AppendLine("</tr>");
sb.AppendLine("</table>");
sb.AppendLine("</td>");
sb.AppendLine("</tr>");
sb.AppendLine("<!--Receiver information-->");
sb.AppendLine("<tr style=\" \">");
sb.AppendLine("<td>");
sb.AppendLine("<table width=\"100%;\" style=\"border:1px solid #ccc;\">");
sb.AppendLine("<tr>");
sb.AppendLine("<td colspan=\"4\" class=\"details\" style=\"padding:0 5px;\"><h4>RECEIVER INFORMATION</h4></td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td style=\"padding:0 5px;\"><label>Payout Country</label></ td >");
sb.AppendLine("<td colspan=\"3\"><span class=\"sender-value\">" + dr["pAgentCountry"].ToString() + "</span></td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td width=\"16%\" valign=\"top\" style=\"padding:0 5px;\"><label>Receiver's Name</label></td>");
sb.AppendLine("<td width=\"28%\" valign=\"top\"><span class=\"sender-value\">" + dr["receiverName"].ToString() + "</span></td>");
sb.AppendLine("<td width=\"18%\"><label>Payment Mode</label></td>");
sb.AppendLine("<td width=\"28%\"><span class=\"sender-value\">" + dr["paymentMode"].ToString() + "</span></td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td style=\"padding:0 5px;\"><label>Contact No</label></ td >");
sb.AppendLine("<td><span class=\"sender-value\">" + dr["rContactNo"].ToString() + "</span></td>");
sb.AppendLine("<td><label>Correspondent</label></td>");
sb.AppendLine("<td><span class=\"sender-value\">" + dr["pAgent"].ToString() + "</span></td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td style=\"padding:0 5px;\"><label>Address</label></td>");
sb.AppendLine("<td><span class=\"sender-value\">" + dr["rAddress"].ToString() + "</span></td>");
sb.AppendLine("<td><label>Bank Name</label></td>");
sb.AppendLine("<td><span class=\"sender-value\">" + dr["pBankName"].ToString() + "</span></td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td style=\"padding:0 5px;\"><label> Relationship </label></td>");
sb.AppendLine("<td><span class=\"sender-value\">" + dr["relWithSender"].ToString() + "</span></td>");
sb.AppendLine("<td><label> Branch </label></td>");
sb.AppendLine("<td><span class=\"sender-value\">" + dr["BranchName"].ToString() + "</span></td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td colspan=\"2\" style=\"padding:0 5px;\"><label> &nbsp;</label></td>");
sb.AppendLine("<td><label>Account No</label></td>");
sb.AppendLine("<td><span class=\"sender-value\">" + dr["accountNo"].ToString() + "</span></td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td colspan=\"4\" style=\"padding:0 5px;\"><p><em>Receive Amount NPR: <span>" + GetStatic.NumberToWord(dr["pAmt"].ToString()) + "</em></span></p></td>");
sb.AppendLine("</tr>");
sb.AppendLine("</table>");
sb.AppendLine("</td>");
sb.AppendLine("</tr>");
sb.AppendLine("</table>");
sb.AppendLine("</td>");
sb.AppendLine("<td width=\"20%\" class=\"amount-info\">");
sb.AppendLine("<table width=\"100%;\" border=\"1\" cellspacing=\"0\" cellpadding=\"0\">");
sb.AppendLine("<tr>");
sb.AppendLine("<td style=\"padding:0 5px;\"><h2>PINNO:<span>" + dr["controlNo"].ToString() + "</span></h2></td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td style=\"padding:0 5px;\"><p>User:<span>" + dr["createdBy"].ToString() + "</span></p><p><span>" + dr["approvedDate"].ToString() + "</span></p></td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td style=\"padding:0 5px;\"><p>Collected Amount</p><h3><span>" + GetStatic.ShowWithoutDecimal(dr["cAmt"].ToString()) + " " + dr["collCurr"].ToString() + "</span></h3></td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td style=\"padding:0 5px;\"><p>Service Charge</p><p><span>" + GetStatic.ShowWithoutDecimal(dr["serviceCharge"].ToString()) + " " + dr["collCurr"].ToString() + "</span></p></td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td style=\"padding:0 5px;\"><p>Transfer Amount</p><p><span>" + GetStatic.ShowWithoutDecimal(dr["tAmt"].ToString()) + " " + dr["collCurr"].ToString() + "</span></p></td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td style=\"padding:0 5px;\"><p>Exchange Rate</p><p><span> " + dr["exRate"].ToString() + " " + dr["payoutCurr"].ToString() + " </span></p></td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td style=\"padding:0 5px;\"><p>Receive Amount</p><h3><span>" + GetStatic.ShowDecimal(dr["pAmt"].ToString()) + " " + dr["payoutCurr"].ToString() + "</span></h3></td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td style=\"padding:0 5px;\"><p>Serial:<span>315631</span></p></td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td style=\"padding:0 5px;\"><p>Deposite Type</p><p><span>Cash</span></p></td>");
sb.AppendLine("</tr>");
sb.AppendLine("</table>");
sb.AppendLine("</td>");
sb.AppendLine("</tr>");
sb.AppendLine("<!--information section-->");
sb.AppendLine("<tr valign=\"top\">");
sb.AppendLine("<td colspan=\"2\">");
sb.AppendLine("<table width=\"100%;\" style=\"border:1px solid #ccc; padding:0 5px;\">");
sb.AppendLine("<tr valign=\"top\" style=\"height:80px;\">");
sb.AppendLine("<td colspan=\"4\" style=\"padding:0 5px;\"><p>" + msg + "</p></td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td style=\"padding:0 5px;\"><label>Customer's Signature</label></td>");
sb.AppendLine("<td>..................................................</td>");
sb.AppendLine("<td><label>Operator:(" + dr["createdBy"].ToString() + ")</label></td>");
sb.AppendLine("<td>..................................................</td>");
sb.AppendLine("</tr>");
sb.AppendLine("</table>");
sb.AppendLine("</td>");
sb.AppendLine("</tr>");
sb.AppendLine("</table>");
if (printType.ToLower() != "both" && !even)
{
//center data
sb.AppendLine("<table width=\"100%;\" style=\"margin:45px 0;\">");
sb.AppendLine("<tr><td><center>-----------------------------------------------------------------Cut From Here-----------------------------------------------------------------</center></td></tr>");
sb.AppendLine("</table>");
}
}
if (printType.ToLower() == "both")
{
//center data
sb.AppendLine("<table width=\"100%;\" style=\"margin:45px 0;\">");
sb.AppendLine("<tr><td><center>-----------------------------------------------------------------Cut From Here-----------------------------------------------------------------</center></td></tr>");
sb.AppendLine("</table>");
}
if (printType.ToLower() == "office" || printType.ToLower() == "both")
{
sb.AppendLine("<table width=\"100%;\" border=\"0\">");
sb.AppendLine("<!--Header-->");
sb.AppendLine("<tr>");
sb.AppendLine("<td>");
sb.AppendLine("<table width=\"100%\" border=\"0\">");
sb.AppendLine("<tr>");
sb.AppendLine("<td width=\"10%;\">");
sb.AppendLine("<div class=\"logo\">");
sb.AppendLine("<img src=\"/images/jme.png\"/>");
sb.AppendLine("</div>");
sb.AppendLine("<p>Kanto Finance Bureau License</p>");
sb.AppendLine("<p>Number:<span>0006</span></p>");
sb.AppendLine("</td>");
sb.AppendLine("<td width=\"50%;\">");
sb.AppendLine("<h3>JME Japan</h3>");
sb.AppendLine("<p>169-0073,Omori Building 4F(AB), Hyakunincho 1-10-07<p>");
sb.AppendLine("<p>Shinjuku-ku, Tokyo, japan<p>");
sb.AppendLine("<p>Tel:03-5475-3913,<span>Fax:03-5475-3913 </span><p>");
sb.AppendLine("<p>email:info @japanremit.com<p>");
sb.AppendLine("</td>");
sb.AppendLine("<td width=\"40%;\">");
sb.AppendLine("<table width=\"100%;\" border=\"0\" >");
sb.AppendLine("<tbody><tr>");
sb.AppendLine("<td colspan=\"2\" class=\"copy\" width=\"100 %;\">");
sb.AppendLine("<p style=\"text-decoration:underline; color:#ff0000;\"> Customer Request</p>");
sb.AppendLine("</td></tr></tbody></table>");
sb.AppendLine("</td>");
sb.AppendLine("</tr>");
sb.AppendLine("</table>");
sb.AppendLine("</td>");
sb.AppendLine("<td>");
sb.AppendLine("<table width=\"100%;\" border=\"0\">");
sb.AppendLine("<tr>");
sb.AppendLine("<td colspan=\"2\" class=\"copy\" width=\"100%;\">");
sb.AppendLine("<p style=\"text-decoration: underline;\">Office Copy</p>");
sb.AppendLine("</td>");
sb.AppendLine("</tr>");
sb.AppendLine("</table>");
sb.AppendLine("</td>");
sb.AppendLine("</tr>");
sb.AppendLine("<!--body-->");
sb.AppendLine("<tr valign=\"top\">");
sb.AppendLine("<td width=\"80%;\">");
sb.AppendLine("<table width=\"100%;\">");
sb.AppendLine("<!--sender information-->");
sb.AppendLine("<tr>");
sb.AppendLine("<td>");
sb.AppendLine("<table width=\"100%;\" style=\"border: 1px solid #ccc;\">");
sb.AppendLine("<tr>");
sb.AppendLine("<td colspan=\"4\" class=\"details\" style=\"padding:0 5px;\"><h4>SENDER INFORMATION</h4></td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td width=\"16%\" valign=\"top\" style=\"padding:0 5px;\"><label>Sender Name</label></td>");
sb.AppendLine("<td width=\"28%\" valign=\"top\"><span class=\"sender-value\">" + dr["senderName"].ToString() + "</span></td>");
sb.AppendLine("<td width=\"18%\" valign=\"top\"><label>Membership Card</label></td>");
sb.AppendLine("<td width=\"28%\"><span class=\"sender-value\">" + dr["sMemId"].ToString() + "</span></td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td style=\"padding:0 5px;\"><label>Address</label></td>");
sb.AppendLine("<td colspan=\"3\"><span class=\"sender-value\">" + dr["sAddress"].ToString() + "</span></td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td style=\"padding:0 5px;\"><label>Nationality</label></td>");
sb.AppendLine("<td><span class=\"sender-value\">" + dr["sNativeCountry"].ToString() + "</span></td>");
sb.AppendLine("<td><label>Purpose</label></td>");
sb.AppendLine("<td><span class=\"sender-value\">" + dr["purpose"].ToString() + "</span></td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td style=\"padding:0 5px;\"><label>Date of birth</label></td>");
sb.AppendLine("<td><span class=\"sender-value\">" + dr["sDob"].ToString() + "</span></td>");
sb.AppendLine("<td><label>Mobile No.</label></td>");
sb.AppendLine("<td><span class=\"sender-value\">" + dr["sContactNo"].ToString() + "</span></td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td style=\"padding:0 5px;\"><label>Visa Status</label></td>");
sb.AppendLine("<td><span class=\"sender-value\">" + dr["visaStatus"].ToString() + "</span></td>");
sb.AppendLine("</tr>");
sb.AppendLine("</table>");
sb.AppendLine("</td>");
sb.AppendLine("</tr>");
sb.AppendLine("<!--Receiver information-->");
sb.AppendLine("<tr style=\" \">");
sb.AppendLine("<td>");
sb.AppendLine("<table width=\"100%;\" style=\"border:1px solid #ccc;\">");
sb.AppendLine("<tr>");
sb.AppendLine("<td colspan=\"4\" class=\"details\" style=\"padding:0 5px;\"><h4>RECEIVER INFORMATION</h4></td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td style=\"padding:0 5px;\"><label>Payout Country</label></ td >");
sb.AppendLine("<td colspan=\"3\"><span class=\"sender-value\">" + dr["pAgentCountry"].ToString() + "</span></td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td width=\"16%\" valign=\"top\" style=\"padding:0 5px;\"><label>Receiver's Name</label></td>");
sb.AppendLine("<td width=\"28%\" valign=\"top\"><span class=\"sender-value\">" + dr["receiverName"].ToString() + "</span></td>");
sb.AppendLine("<td width=\"18%\"><label>Payment Mode</label></td>");
sb.AppendLine("<td width=\"28%\"><span class=\"sender-value\">" + dr["paymentMode"].ToString() + "</span></td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td style=\"padding:0 5px;\"><label>Contact No</label></ td >");
sb.AppendLine("<td><span class=\"sender-value\">" + dr["rContactNo"].ToString() + "</span></td>");
sb.AppendLine("<td><label>Correspondent</label></td>");
sb.AppendLine("<td><span class=\"sender-value\">" + dr["pAgent"].ToString() + "</span></td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td style=\"padding:0 5px;\"><label>Address</label></td>");
sb.AppendLine("<td><span class=\"sender-value\">" + dr["rAddress"].ToString() + "</span></td>");
sb.AppendLine("<td><label>Bank Name</label></td>");
sb.AppendLine("<td><span class=\"sender-value\">" + dr["pBankName"].ToString() + "</span></td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td style=\"padding:0 5px;\"><label> Relationship </label></td>");
sb.AppendLine("<td><span class=\"sender-value\">" + dr["relWithSender"].ToString() + "</span></td>");
sb.AppendLine("<td><label> Branch </label></td>");
sb.AppendLine("<td><span class=\"sender-value\">" + dr["BranchName"].ToString() + "</span></td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td colspan=\"2\" style=\"padding:0 5px;\"><label> &nbsp;</label></td>");
sb.AppendLine("<td><label>Account No</label></td>");
sb.AppendLine("<td><span class=\"sender-value\">" + dr["accountNo"].ToString() + "</span></td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td colspan=\"4\" style=\"padding:0 5px;\"><p><em>Receive Amount NPR: <span>" + GetStatic.NumberToWord(dr["pAmt"].ToString()) + "</em></span></p></td>");
sb.AppendLine("</tr>");
sb.AppendLine("</table>");
sb.AppendLine("</td>");
sb.AppendLine("</tr>");
sb.AppendLine("</table>");
sb.AppendLine("</td>");
sb.AppendLine("<td width=\"20%\" class=\"amount-info\">");
sb.AppendLine("<table width=\"100%;\" border=\"1\" cellspacing=\"0\" cellpadding=\"0\">");
sb.AppendLine("<tr>");
sb.AppendLine("<td style=\"padding:0 5px;\"><h2>PINNO:<span>" + dr["controlNo"].ToString() + "</span></h2></td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td style=\"padding:0 5px;\"><p>User:<span>" + dr["createdBy"].ToString() + "</span></p><p><span>" + dr["approvedDate"].ToString() + "</span></p></td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td style=\"padding:0 5px;\"><p>Collected Amount</p><h3><span>" + GetStatic.ShowWithoutDecimal(dr["cAmt"].ToString()) + " " + dr["collCurr"].ToString() + "</span></h3></td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td style=\"padding:0 5px;\"><p>Service Charge</p><p><span>" + GetStatic.ShowWithoutDecimal(dr["serviceCharge"].ToString()) + " " + dr["collCurr"].ToString() + "</span></p></td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td style=\"padding:0 5px;\"><p>Transfer Amount</p><p><span>" + GetStatic.ShowWithoutDecimal(dr["tAmt"].ToString()) + " " + dr["collCurr"].ToString() + "</span></p></td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td style=\"padding:0 5px;\"><p>Exchange Rate</p><p><span> " + dr["exRate"].ToString() + " " + dr["payoutCurr"].ToString() + " </span></p></td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td style=\"padding:0 5px;\"><p>Receive Amount</p><h3><span>" + GetStatic.ShowDecimal(dr["pAmt"].ToString()) + " " + dr["payoutCurr"].ToString() + "</span></h3></td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td style=\"padding:0 5px;\"><p>Serial:<span>315631</span></p></td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td style=\"padding:0 5px;\"><p>Deposite Type</p><p><span>Cash</span></p></td>");
sb.AppendLine("</tr>");
sb.AppendLine("</table>");
sb.AppendLine("</td>");
sb.AppendLine("</tr>");
sb.AppendLine("<!--information section-->");
sb.AppendLine("<tr valign=\"top\">");
sb.AppendLine("<td colspan=\"2\">");
sb.AppendLine("<table width=\"100%;\" style=\"border:1px solid #ccc; padding:0 5px;\">");
sb.AppendLine("<tr valign=\"top\" style=\"height:80px;\">");
sb.AppendLine("<td colspan=\"4\" style=\"padding:0 5px;\"><p>" + msg + "</p></td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td style=\"padding:0 5px;\"><label>Customer's Signature</label></td>");
sb.AppendLine("<td>..................................................</td>");
sb.AppendLine("<td><label>Operator:(" + dr["createdBy"].ToString() + ")</label></td>");
sb.AppendLine("<td>..................................................</td>");
sb.AppendLine("</tr>");
sb.AppendLine("</table>");
sb.AppendLine("</td>");
sb.AppendLine("</tr>");
sb.AppendLine("</table>");
if (printType.ToLower() != "both" && !even)
{
//center data
sb.AppendLine("<table width=\"100%;\" style=\"margin:45px 0;\">");
sb.AppendLine("<tr><td><center>-----------------------------------------------------------------Cut From Here-----------------------------------------------------------------</center></td></tr>");
sb.AppendLine("</table>");
}
}
sb.AppendLine("</td>");
sb.AppendLine("</tr>");
sb.AppendLine("</table>");
sb.AppendLine("<footer></footer>");
return sb.ToString();
}
public string GenerateReceipt1(DataRow dr, int noOfRows)
{
string msg = "(1) I understood and agreed to the Terms and Conditions of JME published on the website.<br />";
msg += "(2) I read and understood the Privacy Policy of JME published on the website.<br />";
msg += "(3) I confirmed the information provided above is true and correct.<br />";
msg += "(4) I declare that<br />";
msg += "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- This request has nothing to do with Democratic People`s Republic of Korea (DPRK) and Islamic<br />";
msg += "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Republic of Iran;<br />";
msg += "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- I have no relation to Anti-Social Forces;<br />";
msg += "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- I do not engage in any illegal activities.<br />";
string msg1 = "(1) ウェブサイト上で公開されている当社の「海外送金規約」を理解し合意しています。<br />";
msg1 += "(2) ウェブサイト上で公開されている当社の「個人情報保護方針」を確認し理解しました。<br />";
msg1 += "(3) 上記の記載内容に相違がないことを確認しました。<br />";
msg1 += "(4) 更に、以下の点につき表明します。<br />";
msg1 += "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- 本件依頼は朝鮮民主主義人民共和国及びイラン・イスラム共和国とは<br />";
msg1 += "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;一切関わりがないこと。<br />";
msg1 += "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- 私は反社会的勢力とは何ら関わりがないこと。<br />";
msg1 += "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- 私は一切違法行為を行っていないこと。<br />";
var sb = new StringBuilder("");
bool even = false;
if (noOfRows % 2 == 0)
{
even = true;
}
if (!even || printType.ToLower() == "both")
{
//add page break only in odd
sb.AppendLine("<P style =\"page-break-before: always\">");
}
sb.AppendLine("<table border='0' width='100%' style='margin-top: 1%;' class='no-margin'>");
sb.AppendLine("<tr>");
sb.AppendLine("<td colspan='3'>");
if (printType.ToLower() == "office" || printType.ToLower() == "both")
{
//Customer copy
sb.AppendLine("<table width='100%;' border='0'>");
sb.AppendLine("<!--Header-->");
sb.AppendLine("<tr>");
sb.AppendLine("<td colspan=\"3\">");
sb.AppendLine("<table width=\"100%\" border=\"0\">");
sb.AppendLine("<tr>");
sb.AppendLine("<td width=\"5%;\">");
sb.AppendLine("<div class=\"logo\">");
sb.AppendLine("<img src=\"/images/jme.png\"/>");
sb.AppendLine("</div>");
sb.AppendLine("<p style='font-size: 8px;'>Fund Transfer Services Registration No.00006 Kanto Local Finance Bureau</p>");
sb.AppendLine("<p style='font-size: 8px;'>資金移動業関東財務局長第00006号");
sb.AppendLine("</p>");
sb.AppendLine("</td>");
sb.AppendLine("<td style=\"width:90%;\" colspan=\"2\">");
sb.AppendLine("<table style=\"width:100%;\">");
sb.AppendLine("<tr>");
sb.AppendLine("<td style='padding: 0 10px; width: 45%;'>");
sb.AppendLine("<h3 style='font-size: 12px;'>Japan Money Express Co. Ltd. (JME)</h3>");
sb.AppendLine("<p style='font-size: 9px;'>Room AB, Omori Building 4F, 1-10-7 Hyakunin-cho,<br />Shinjuku - ku, Tokyo, 169 - 0073, Japan </p>");
sb.AppendLine("<p style=\"font-size: 9px;\">Tel: 03-5475-3913, Fax: 03-5475-3914<br />https://www.japanremit.com</p>");
sb.AppendLine("</td>");
sb.AppendLine("<td style=\"padding: 0 10px; width:55%;\">");
sb.AppendLine("<h3 style=\"font-size: 12px;\">ジャパンマネーエクスプレス株式会社</h3>");
sb.AppendLine("<p style=\"font-size: 9px;\">〒169-0073 東京都新宿区百人町一丁目10番7号<br />大森ビル4階AB号室 </p>");
sb.AppendLine("<p style=\"font-size: 9px;\">Tel: 03-5475-3913, Fax: 03-5475-3914<br />https://www.japanremit.com</ p>");
sb.AppendLine("</td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td colspan='2'>");
sb.AppendLine("<h3 style='font-size: 25px; margin-left: 10%;'><span style='text-decoration: underline; font-size: 23px;'>Remittance Statement 送金明細書");
sb.AppendLine("</span>&nbsp;&nbsp;&nbsp;&nbsp;<span style='text-decoration: underline; color: #ff0000; font-size: 17px; float: right; margin-top: 10px;'>Office Copy</span></h3>");
sb.AppendLine("</td>");
sb.AppendLine("</tr>");
sb.AppendLine("</table>");
sb.AppendLine("</td>");
sb.AppendLine("</tr>");
sb.AppendLine("</table>");
sb.AppendLine("</td>");
sb.AppendLine("</tr>");
sb.AppendLine("<!--body-->");
sb.AppendLine("<tr valign=\"top\">");
sb.AppendLine("<td width=\"80%;\">");
sb.AppendLine("<table width=\"100%;\">");
sb.AppendLine("<!--sender information-->");
sb.AppendLine("<tr>");
sb.AppendLine("<td>");
sb.AppendLine("<table width='100%;' style='border: 1px solid #ccc; border-bottom: none;' class='tbl-sender-rec-info'>");
sb.AppendLine("<tr>");
sb.AppendLine("<td colspan=\"4\" class=\"details\"><h4>送金依頼人 SENDER INFORMATION</h4></td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td width=\"30%\" valign=\"top\"><label>依頼人名 Sender Name</label></td>");
sb.AppendLine("<td width=\"30%\" valign=\"top\"><span class=\"sender-value\">" + dr["senderName"].ToString() + "</span></td>");
sb.AppendLine("<td width=\"23%\" valign=\"top\"><label>会員番号 Membership ID</label></td>");
sb.AppendLine("<td width=\"22%\"><span class=\"sender-value\">" + dr["sMemId"].ToString() + "</span></td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td><label>住所 Address</label></td>");
sb.AppendLine("<td colspan=\"3\"><span class=\"sender-value\">" + dr["sAddress"].ToString() + "</span></td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td><label>国籍 Nationality</label></td>");
sb.AppendLine("<td><span class=\"sender-value\">" + dr["sNativeCountry"].ToString() + "</span></td>");
sb.AppendLine("<td><label>職業 Occupation</label></td>");
sb.AppendLine("<td><span class=\"sender-value\">" + dr["occupation"].ToString() + "</span></td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td><label>電話番号 Telephone No.</label></td>");
sb.AppendLine("<td><span class=\"sender-value\">" + dr["sContactNo"].ToString() + "</span></td>");
sb.AppendLine("</tr>");
sb.AppendLine("</table>");
sb.AppendLine("</td>");
sb.AppendLine("</tr>");
sb.AppendLine("<!--Receiver information-->");
sb.AppendLine("<tr>");
sb.AppendLine("<td>");
sb.AppendLine("<table width='100%;' style='border:1px solid #ccc; padding: 5px; border-bottom: none;' class='tbl-sender-rec-info'>");
sb.AppendLine("<tr>");
sb.AppendLine("<td colspan=\"4\" class=\"details\"><h4>送金受取人 BENEFICIARY INFORMATION</h4></td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td style=\"width:25%\"><label>受取国 Payout Country</label></ td >");
sb.AppendLine("<td style='width: 30%;'><span class=\"sender-value\">" + dr["pAgentCountry"].ToString() + "</span></td>");
sb.AppendLine("<td style='width: 23%;'><label>目的 Purpose</label></ td >");
sb.AppendLine("<td style='width: 22%;'><span class=\"sender-value\">" + dr["purpose"].ToString() + "</span></td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td valign=\"top\"><label>受取人名 Beneficiary Name</label></td>");
sb.AppendLine("<td valign=\"top\"><span class=\"sender-value\">" + dr["receiverName"].ToString() + "</span></td>");
sb.AppendLine("<td><label>受取方法 Mode of Receipt</label></td>");
sb.AppendLine("<td><span class=\"sender-value\">" + dr["paymentMode"].ToString() + "</span></td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td><label>電話番号 Telephone No.</label></ td >");
sb.AppendLine("<td><span class=\"sender-value\">" + dr["rContactNo"].ToString() + "</span></td>");
sb.AppendLine("<td><label>銀行名 Bank Name</label></td>");
sb.AppendLine("<td><span class=\"sender-value\">" + dr["pBankName"].ToString() + "</span></td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td><label>受取人との関係<br />Relation with Beneficiary</label></td>");
sb.AppendLine("<td><span class=\"sender-value\">" + dr["relWithSender"].ToString() + "</span></td>");
if (dr["paymentMethod"].ToString().ToUpper().Equals("BANK DEPOSIT"))
{
sb.AppendLine("<td><label>支店名 Branch Name</label></td>");
sb.AppendLine("<td><span class=\"sender-value\">" + dr["BranchName"].ToString() + "</span></td>");
}
sb.AppendLine("</tr>");
if (dr["paymentMethod"].ToString().ToUpper().Equals("BANK DEPOSIT"))
{
sb.AppendLine("<tr>");
sb.AppendLine("<td>&nbsp;</td><td>&nbsp;</td>");
sb.AppendLine("<td><label>口座番号 Account No.</label></td>");
sb.AppendLine("<td><span class=\"sender-value\">" + dr["accountNo"].ToString() + "</span></td>");
sb.AppendLine("</tr>");
}
sb.AppendLine("</table>");
sb.AppendLine("</td>");
sb.AppendLine("</tr>");
sb.AppendLine("</table>");
sb.AppendLine("</td>");
sb.AppendLine("<td width=\"20%\" class=\"amount-info\">");
sb.AppendLine("<table width=\"100%;\" border=\"1\" cellspacing=\"0\" cellpadding=\"0\">");
sb.AppendLine("<tr>");
sb.AppendLine("<td style=\"font-weight: bold;\"><h2>JME NO:<span>" + dr["controlNo"].ToString() + "</span></h2></td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td><p>User:<span>" + dr["createdBy"].ToString() + "</span></p><p><span>" + dr["approvedDate"].ToString() + "</span></p></td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td><p>Collect Amount</p><h3><span>" + GetStatic.ShowWithoutDecimal(dr["cAmt"].ToString()) + " " + dr["collCurr"].ToString() + "</span></h3></td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td><p>Service Charge</p><p><span>" + GetStatic.ShowWithoutDecimal(dr["serviceCharge"].ToString()) + " " + dr["collCurr"].ToString() + "</span></p></td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td><p>Transfer Amount</p><p><span>" + GetStatic.ShowWithoutDecimal(dr["tAmt"].ToString()) + " " + dr["collCurr"].ToString() + "</span></p></td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td><p>Exchange Rate</p><p><span> " + dr["exRate"].ToString() + " " + dr["payoutCurr"].ToString() + " </span></p></td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td><p>Payout Amount</p><h3><span>" + GetStatic.ShowDecimal(dr["pAmt"].ToString()) + " " + dr["payoutCurr"].ToString() + "</span></h3></td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td><p>Serial:<span>" + dr["tranId"].ToString() + "</span></p></td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td><p>Deposite Type</p><p><span>" + dr["collMode"].ToString() + "</span></p></td>");
sb.AppendLine("</tr>");
sb.AppendLine("</table>");
sb.AppendLine("</td>");
sb.AppendLine("</tr>");
sb.AppendLine("<!--information section-->");
sb.AppendLine("<tr valign=\"top\">");
sb.AppendLine("<td colspan=\"2\">");
sb.AppendLine("<table width=\"100%;\" style=\"border:1px solid #ccc; padding:5px;\">");
sb.AppendLine("<tr>");
sb.AppendLine("<td colspan=\"4\" style=\"font-weight:600;\">署名及び宣誓 Signature and Declaration</td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr valign=\"top\" style=\"height:90px;\">");
sb.AppendLine("<td colspan=\"2\" style=\"padding:5px;\"><p style=\"font-size:8px\">" + msg + "</p></td>");
sb.AppendLine("<td colspan=\"2\" \"><p style=\"font-size:8px\">" + msg1 + "</p></td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr><td colspan='4'>&nbsp;</td></tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td style=\"padding: 5px;\">");
sb.AppendLine("<label>署名若しくは印鑑 Signature or Stamp</label>");
sb.AppendLine("</td>");
sb.AppendLine("<td style=\"padding-top: 10px !important;\">..................................................</td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr><td colspan='4'>&nbsp;</td></tr>");
sb.AppendLine("</table>");
sb.AppendLine("</td>");
sb.AppendLine("</tr>");
sb.AppendLine("</table>");
if (printType.ToLower() != "both" && !even)
{
//center data
sb.AppendLine("<table width=\"100%;\" style=\"margin:50px 0;\">");
sb.AppendLine("<tr><td><center>-----------------------------------------------------------------Cut From Here-----------------------------------------------------------------</center></td></tr>");
sb.AppendLine("</table>");
}
}
if (printType.ToLower() == "both")
{
//center data
sb.AppendLine("<table width=\"100%;\" style=\"margin:50px 0;\">");
sb.AppendLine("<tr><td><center>-----------------------------------------------------------------Cut From Here-----------------------------------------------------------------</center></td></tr>");
sb.AppendLine("</table>");
}
if (printType.ToLower() == "customer" || printType.ToLower() == "both")
{
sb.AppendLine("<table width='100%;' border='0'>");
sb.AppendLine("<!--Header-->");
sb.AppendLine("<tr>");
sb.AppendLine("<td colspan=\"3\">");
sb.AppendLine("<table width=\"100%\" border=\"0\">");
sb.AppendLine("<tr>");
sb.AppendLine("<td width=\"5%;\">");
sb.AppendLine("<div class=\"logo\">");
sb.AppendLine("<img src=\"/images/jme.png\"/>");
sb.AppendLine("</div>");
sb.AppendLine("<p style='font-size: 8px;'>Fund Transfer Services Registration No.00006 Kanto Local Finance Bureau</p>");
sb.AppendLine("<p style='font-size: 8px;'>資金移動業関東財務局長第00006号");
sb.AppendLine("</p>");
sb.AppendLine("</td>");
sb.AppendLine("<td style=\"width:90%;\" colspan=\"2\">");
sb.AppendLine("<table style=\"width:100%;\">");
sb.AppendLine("<tr>");
sb.AppendLine("<td style='padding: 0 10px; width: 45%;'>");
sb.AppendLine("<h3 style='font-size: 12px;'>Japan Money Express Co. Ltd. (JME)</h3>");
sb.AppendLine("<p style='font-size: 9px;'>Room AB, Omori Building 4F, 1-10-7 Hyakunin-cho,<br />Shinjuku - ku, Tokyo, 169 - 0073, Japan </p>");
sb.AppendLine("<p style=\"font-size: 9px;\">Tel: 03-5475-3913, Fax: 03-5475-3914<br />https://www.japanremit.com</p>");
sb.AppendLine("</td>");
sb.AppendLine("<td style=\"padding: 0 10px; width:55%;\">");
sb.AppendLine("<h3 style=\"font-size: 12px;\">ジャパンマネーエクスプレス株式会社</h3>");
sb.AppendLine("<p style=\"font-size: 9px;\">〒169-0073 東京都新宿区百人町一丁目10番7号<br />大森ビル4階AB号室 </p>");
sb.AppendLine("<p style=\"font-size: 9px;\">Tel: 03-5475-3913, Fax: 03-5475-3914<br />https://www.japanremit.com</ p>");
sb.AppendLine("</td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td colspan='2'>");
sb.AppendLine("<h3 style='font-size: 25px; margin-left: 10%;'><span style='text-decoration: underline; font-size: 23px;'>Remittance Statement 送金明細書");
sb.AppendLine("</span>&nbsp;&nbsp;&nbsp;&nbsp;<span style='text-decoration: underline; color: #ff0000; font-size: 17px; float: right; margin-top: 10px;'>Customer Copy</span></h3>");
sb.AppendLine("</td>");
sb.AppendLine("</tr>");
sb.AppendLine("</table>");
sb.AppendLine("</td>");
sb.AppendLine("</tr>");
sb.AppendLine("</table>");
sb.AppendLine("</td>");
sb.AppendLine("</tr>");
sb.AppendLine("<!--body-->");
sb.AppendLine("<tr valign=\"top\">");
sb.AppendLine("<td width=\"80%;\">");
sb.AppendLine("<table width=\"100%;\">");
sb.AppendLine("<!--sender information-->");
sb.AppendLine("<tr>");
sb.AppendLine("<td>");
sb.AppendLine("<table width='100%;' style='border: 1px solid #ccc; border-bottom: none;' class='tbl-sender-rec-info'>");
sb.AppendLine("<tr>");
sb.AppendLine("<td colspan=\"4\" class=\"details\"><h4>送金依頼人 SENDER INFORMATION</h4></td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td width=\"25%\" valign=\"top\"><label>依頼人名 Sender Name</label></td>");
sb.AppendLine("<td width=\"30%\" valign=\"top\"><span class=\"sender-value\">" + dr["senderName"].ToString() + "</span></td>");
sb.AppendLine("<td width=\"23%\" valign=\"top\"><label>会員番号 Membership ID</label></td>");
sb.AppendLine("<td width=\"22%\"><span class=\"sender-value\">" + dr["sMemId"].ToString() + "</span></td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td><label>住所 Address</label></td>");
sb.AppendLine("<td colspan=\"3\"><span class=\"sender-value\">" + dr["sAddress"].ToString() + "</span></td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td><label>国籍 Nationality</label></td>");
sb.AppendLine("<td><span class=\"sender-value\">" + dr["sNativeCountry"].ToString() + "</span></td>");
sb.AppendLine("<td><label>職業 Occupation</label></td>");
sb.AppendLine("<td><span class=\"sender-value\">" + dr["occupation"].ToString() + "</span></td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td><label>電話番号 Telephone No.</label></td>");
sb.AppendLine("<td><span class=\"sender-value\">" + dr["sContactNo"].ToString() + "</span></td>");
sb.AppendLine("</tr>");
sb.AppendLine("</table>");
sb.AppendLine("</td>");
sb.AppendLine("</tr>");
sb.AppendLine("<!--Receiver information-->");
sb.AppendLine("<tr>");
sb.AppendLine("<td>");
sb.AppendLine("<table width='100%;' style='border:1px solid #ccc; padding: 5px; border-bottom: none;' class='tbl-sender-rec-info'>");
sb.AppendLine("<tr>");
sb.AppendLine("<td colspan=\"4\" class=\"details\"><h4>送金受取人 BENEFICIARY INFORMATION</h4></td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td style=\"width:25%\"><label>受取国 Payout Country</label></ td >");
sb.AppendLine("<td style='width: 30%;'><span class=\"sender-value\">" + dr["pAgentCountry"].ToString() + "</span></td>");
sb.AppendLine("<td style='width: 23%;'><label>目的 Purpose</label></ td >");
sb.AppendLine("<td style='width: 22%;'><span class=\"sender-value\">" + dr["purpose"].ToString() + "</span></td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td valign=\"top\"><label>受取人名 Beneficiary Name</label></td>");
sb.AppendLine("<td valign=\"top\"><span class=\"sender-value\">" + dr["receiverName"].ToString() + "</span></td>");
sb.AppendLine("<td><label>受取方法 Mode of Receipt</label></td>");
sb.AppendLine("<td><span class=\"sender-value\">" + dr["paymentMode"].ToString() + "</span></td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td><label>電話番号 Telephone No.</label></ td >");
sb.AppendLine("<td><span class=\"sender-value\">" + dr["rContactNo"].ToString() + "</span></td>");
sb.AppendLine("<td><label>銀行名 Bank Name</label></td>");
sb.AppendLine("<td><span class=\"sender-value\">" + dr["pBankName"].ToString() + "</span></td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td><label>受取人との関係<br />Relation with Beneficiary</label></td>");
sb.AppendLine("<td><span class=\"sender-value\">" + dr["relWithSender"].ToString() + "</span></td>");
if (dr["paymentMethod"].ToString().ToUpper().Equals("BANK DEPOSIT"))
{
sb.AppendLine("<td><label>支店名 Branch Name</label></td>");
sb.AppendLine("<td><span class=\"sender-value\">" + dr["BranchName"].ToString() + "</span></td>");
}
sb.AppendLine("</tr>");
if (dr["paymentMethod"].ToString().ToUpper().Equals("BANK DEPOSIT"))
{
sb.AppendLine("<tr>");
sb.AppendLine("<td>&nbsp;</td><td>&nbsp;</td>");
sb.AppendLine("<td><label>口座番号 Account No.</label></td>");
sb.AppendLine("<td><span class=\"sender-value\">" + dr["accountNo"].ToString() + "</span></td>");
sb.AppendLine("</tr>");
}
sb.AppendLine("</table>");
sb.AppendLine("</td>");
sb.AppendLine("</tr>");
sb.AppendLine("</table>");
sb.AppendLine("</td>");
sb.AppendLine("<td width=\"20%\" class=\"amount-info\">");
sb.AppendLine("<table width=\"100%;\" border=\"1\" cellspacing=\"0\" cellpadding=\"0\">");
sb.AppendLine("<tr>");
sb.AppendLine("<td style=\"font-weight: bold;\"><h2>JME NO:<span>" + dr["controlNo"].ToString() + "</span></h2></td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td><p>User:<span>" + dr["createdBy"].ToString() + "</span></p><p><span>" + dr["approvedDate"].ToString() + "</span></p></td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td><p>Collect Amount</p><h3><span>" + GetStatic.ShowWithoutDecimal(dr["cAmt"].ToString()) + " " + dr["collCurr"].ToString() + "</span></h3></td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td><p>Service Charge</p><p><span>" + GetStatic.ShowWithoutDecimal(dr["serviceCharge"].ToString()) + " " + dr["collCurr"].ToString() + "</span></p></td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td><p>Transfer Amount</p><p><span>" + GetStatic.ShowWithoutDecimal(dr["tAmt"].ToString()) + " " + dr["collCurr"].ToString() + "</span></p></td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td><p>Exchange Rate</p><p><span> " + dr["exRate"].ToString() + " " + dr["payoutCurr"].ToString() + " </span></p></td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td><p>Payout Amount</p><h3><span>" + GetStatic.ShowDecimal(dr["pAmt"].ToString()) + " " + dr["payoutCurr"].ToString() + "</span></h3></td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td><p>Serial:<span>" + dr["tranId"].ToString() + "</span></p></td>");
sb.AppendLine("</tr>");
sb.AppendLine("<tr>");
sb.AppendLine("<td><p>Deposite Type</p><p><span>" + dr["collMode"].ToString() + "</span></p></td>");
sb.AppendLine("</tr>");
sb.AppendLine("</table>");
sb.AppendLine("</td>");
sb.AppendLine("</tr>");
sb.AppendLine("<!--information section-->");
sb.AppendLine("<tr valign=\"top\">");
sb.AppendLine("<td colspan=\"2\">");
sb.AppendLine("<table width=\"100%;\" style=\"border:1px solid #ccc; padding:5px; min-height: 100px;\">");
sb.AppendLine("<tr class='bottom-box' style='min-height: 100px;'>");
sb.AppendLine("<td colspan='2' style='padding: 5px; width: 50%; text-align: center;' class='print-gray'>");
sb.AppendLine("<span style='font-size: 25px;'>Company Stamp</span></td>");
sb.AppendLine("<td style='vertical-align: bottom;'><label>Operator:(" + dr["createdBy"].ToString() + ")</label></td>");
sb.AppendLine("<td style='padding-top: 10px !important; vertical-align: bottom;'>..................................................");
sb.AppendLine("</td></tr>");
sb.AppendLine("</table>");
sb.AppendLine("</td>");
sb.AppendLine("</tr>");
sb.AppendLine("</table>");
if (printType.ToLower() != "both" && !even)
{
//center data
sb.AppendLine("<table width=\"100%;\" style=\"margin:50px 0;\">");
sb.AppendLine("<tr><td><center>-----------------------------------------------------------------Cut From Here-----------------------------------------------------------------</center></td></tr>");
sb.AppendLine("</table>");
}
}
sb.AppendLine("</td>");
sb.AppendLine("</tr>");
sb.AppendLine("</table>");
sb.AppendLine("<footer></footer>");
return sb.ToString();
}
}
}