Esempio n. 1
0
    void DataBinder()
    {
        txtContainer.Focus(true);

        DataFactory dal = new DataFactory();
        DataSet     ds  = dal.FactoryDAL(PageHelper.ConnectionStrings, "FW_OceanExport_Container_SP", new List <IFields>()
        {
            dal.CreateIFields()
            .Append("Option", "List").Append("oc_ROWID", hidID.Text)
            .Append("oc_ToHBL", Request["HBL"])
        }).GetList();

        if (ds != null && ds.Tables[0].Rows.Count > 0)
        {
            string temphawb  = ds.Tables[0].Rows[0]["HBL"].ToString().ToUpper() == "" ? "" : "HBL# " + "<span style='color:#ff0000;'>" + ds.Tables[0].Rows[0]["HBL"].ToString().ToUpper() + "</span>";
            string tempmawb  = ds.Tables[0].Rows[0]["MBL"].ToString().ToUpper() == "" ? "" : "MBL# " + "<span style='color:#ff0000;'>" + ds.Tables[0].Rows[0]["MBL"].ToString().ToUpper() + "</span>";
            string tempLotNo = ds.Tables[0].Rows[0]["LotNo"].ToString().ToUpper() == "" ? "" : "Lot# " + "<span style='color:#ff0000;'>" + ds.Tables[0].Rows[0]["LotNo"].ToString().ToUpper() + "</span>";
            labHeader.Html = (temphawb == "" ? "" : "<span style='padding-left:10px'>" + temphawb + "</span>") + (tempmawb == "" ? "" : "<span style='padding-left:10px'>" + tempmawb + "</span>") + (tempLotNo == "" ? "" : "<span style='padding-left:10px'>" + tempLotNo + "</span>");

            chkIsMain.Checked = Convert.ToBoolean(ds.Tables[0].Rows[0]["oc_isMain"]);
            txtContainer.Text = ds.Tables[0].Rows[0]["oc_CtnrNo"].ToString();
            txtSeal.Text      = ds.Tables[0].Rows[0]["oc_SealNo"].ToString();
            CmbSize.setValue(ds.Tables[0].Rows[0]["oc_CtnrSize"].ToString());
            CmbSerMode.setValue(ds.Tables[0].Rows[0]["oc_Servicemode"].ToString());
            txtSO.Text = ds.Tables[0].Rows[0]["oc_SONo"].ToString();
            if (!string.IsNullOrEmpty(ds.Tables[0].Rows[0]["oc_GWT"].ToString()))
            {
                txtGWT.Text = ds.Tables[0].Rows[0]["oc_GWT"].ToString();
            }
            if (!string.IsNullOrEmpty(ds.Tables[0].Rows[0]["oc_CBM"].ToString()))
            {
                txtCBM.Text = ds.Tables[0].Rows[0]["oc_CBM"].ToString();
            }
            if (!string.IsNullOrEmpty(ds.Tables[0].Rows[0]["oc_Piece"].ToString()))
            {
                txtPiece.Text = ds.Tables[0].Rows[0]["oc_Piece"].ToString();
            }
            CmbUnit.setValue(ds.Tables[0].Rows[0]["oc_Unit"].ToString());
            txtMarks1.Text = ds.Tables[0].Rows[0]["oc_OrderMarks"].ToString();
            txtMarks2.Text = ds.Tables[0].Rows[0]["oc_OrderDescription"].ToString();
            txtmarks3.Text = ds.Tables[0].Rows[0]["oc_OrderNoOfPackage"].ToString();
            lblPiece.Text  = txtPiece.Text;
            //lblUnit.Text = ds.Tables[0].Rows[0]["oc_Unit"].ToString();
            X.AddScript("var r = StoreUnit.getById($('#CmbUnit').val());if(!Ext.isEmpty(r)){#{lblUnit}.setValue(r.data.short);}");
            txtRemark.Text = ds.Tables[0].Rows[0]["oc_Remark"].ToString();
            if (string.IsNullOrEmpty(Request["ID"]))
            {
                ControlBinder.pageTitleMsg(false, "OE-C  New", "<p>Status: New Blank Container .</p>", div_bottom);
            }
            else
            {
                ControlBinder.pageTitleMsg(false, "OE-C:" + txtContainer.Text, "<p>Status: Edit Container of  <span>" + txtContainer.Text.ToUpper() + "</span>.</p>", div_bottom);
            }
        }
        else
        {
            ControlBinder.pageTitleMsg(false, "OE-C  New", "<p>Status: New Blank Container .</p>", div_bottom);
        }
    }
Esempio n. 2
0
 protected void btnClear_Click(object sender, DirectEventArgs e)
 {
     txtContainer.Text = "";
     txtSeal.Text      = "";
     CmbSize.setValue("");
     txtSO.Text = "";
     txtContainer.Focus(true);
 }
Esempio n. 3
0
 protected void row_Click(object sender, DirectEventArgs e)
 {
     txtContainer.Text = e.ExtraParams["container"];
     txtSeal.Text      = e.ExtraParams["seal"];
     CmbSize.setValue(e.ExtraParams["size"]);
     txtSO.Text = e.ExtraParams["so"];
     txtContainer.Focus(true);
 }
Esempio n. 4
0
    void DataBinder()
    {
        txtContainer.Focus(true);

        DataFactory dal = new DataFactory();
        DataSet     ds  = dal.FactoryDAL(PageHelper.ConnectionStrings, "FW_OceanImport_Container_SP", new List <IFields>()
        {
            dal.CreateIFields()
            .Append("Option", "List").Append("oc_ROWID", hidID.Text)
            .Append("oc_ToHBL", Request["HBL"])
        }).GetList();

        if (ds != null && ds.Tables[0].Rows.Count > 0)
        {
            txtContainer.Text = ds.Tables[0].Rows[0]["oc_CtnrNo"].ToString();
            txtSeal.Text      = ds.Tables[0].Rows[0]["oc_SealNo"].ToString();
            CmbSize.setValue(ds.Tables[0].Rows[0]["oc_CtnrSize"].ToString());
            CmbSerMode.setValue(ds.Tables[0].Rows[0]["oc_Servicemode"].ToString());
            txtSO.Text    = ds.Tables[0].Rows[0]["oc_SONo"].ToString();
            txtGWT.Text   = ds.Tables[0].Rows[0]["oc_GWT"].ToString();
            txtCBM.Text   = ds.Tables[0].Rows[0]["oc_CBM"].ToString();
            txtPiece.Text = ds.Tables[0].Rows[0]["oc_Piece"].ToString();
            CmbUnit.setValue(ds.Tables[0].Rows[0]["oc_Unit"].ToString());
            txtMarks1.Text = ds.Tables[0].Rows[0]["oc_OrderMarks"].ToString();
            txtMarks2.Text = ds.Tables[0].Rows[0]["oc_OrderDescription"].ToString();
            txtmarks3.Text = ds.Tables[0].Rows[0]["oc_OrderNoOfPackage"].ToString();
            lblPiece.Text  = ds.Tables[0].Rows[0]["oc_Piece"].ToString();
            lblUnit.Text   = ds.Tables[0].Rows[0]["oc_Unit"].ToString();
            txtRemark.Text = ds.Tables[0].Rows[0]["oc_Remark"].ToString();
            if (string.IsNullOrEmpty(Request["ID"]))
            {
                ControlBinder.pageTitleMsg(false, "OI-C  New", "<p>Status: New Blank Container .</p>", div_bottom);
            }
            else
            {
                ControlBinder.pageTitleMsg(false, "OI-C:" + txtContainer.Text, "<p>Status: Edit Container of  <span>" + txtContainer.Text + "</span>.</p>", div_bottom);
            }
        }
        else
        {
            ControlBinder.pageTitleMsg(false, "OI-C  New", "<p>Status: New Blank Container .</p>", div_bottom);
        }
    }