예제 #1
0
        protected void lvAllMeasurementList_ItemDataBound(object sender, ListViewItemEventArgs e)
        {
            if (e.Item.ItemType == ListViewItemType.DataItem)
            {
                ListViewDataItem    currentItem         = (ListViewDataItem)e.Item;
                CustomerMeasurement customerMeasurement = (CustomerMeasurement)((ListViewDataItem)(e.Item)).DataItem;
                //LinkButton lnkbtnCustomerName = (LinkButton)currentItem.FindControl("lnkbtnCustomerName");
                Label      lblCustomerName  = (Label)currentItem.FindControl("lblCustomerName");
                Label      lblDressType     = (Label)currentItem.FindControl("lblDressType");
                Label      lblLength        = (Label)currentItem.FindControl("lblLength");
                Label      lblChest         = (Label)currentItem.FindControl("lblChest");
                Label      lblWaist         = (Label)currentItem.FindControl("lblWaist");
                Label      lblHip           = (Label)currentItem.FindControl("lblHip");
                Label      lblShoulder      = (Label)currentItem.FindControl("lblShoulder");
                Label      lblSleeve        = (Label)currentItem.FindControl("lblSleeve");
                Label      lblCuff          = (Label)currentItem.FindControl("lblCuff");
                Label      lblNeck          = (Label)currentItem.FindControl("lblNeck");
                Label      lblAllRoundRise  = (Label)currentItem.FindControl("lblAllRoundRise");
                Label      lblThaigh        = (Label)currentItem.FindControl("lblThaigh");
                Label      lblBottomOpening = (Label)currentItem.FindControl("lblBottomOpening");
                LinkButton lnkEdit          = (LinkButton)currentItem.FindControl("lnkEdit");
                LinkButton lnkPrint         = (LinkButton)currentItem.FindControl("lnkPrint");
                Label      lblCustomerID    = (Label)currentItem.FindControl("lblCustomerID");
                Label      lblMobileNo      = (Label)currentItem.FindControl("lblMobileNo");

                lvRowCount += 1;
                Label lblSerialNo = (Label)currentItem.FindControl("lblSerialNo");
                //lblSerialNo.Text = lvRowCount.ToString();

                //lnkbtnCustomerName.Text = customerMeasurement.CustomerName;
                lblCustomerName.Text  = customerMeasurement.CustomerName;
                lblDressType.Text     = customerMeasurement.DressTypeName;
                lblLength.Text        = customerMeasurement.Length.ToString();
                lblChest.Text         = customerMeasurement.Chest.ToString();
                lblWaist.Text         = customerMeasurement.WaistBelly.ToString();
                lblHip.Text           = customerMeasurement.Hip.ToString();
                lblShoulder.Text      = customerMeasurement.Shoulder.ToString();
                lblSleeve.Text        = customerMeasurement.SleeveLength.ToString();
                lblCuff.Text          = customerMeasurement.CuffOpening.ToString();
                lblNeck.Text          = customerMeasurement.Neck.ToString();
                lblAllRoundRise.Text  = customerMeasurement.AllRoundRise.ToString();
                lblThaigh.Text        = customerMeasurement.Thaigh.ToString();
                lblBottomOpening.Text = customerMeasurement.BottomOpening.ToString();
                //lnkbtnCustomerName.CommandArgument = customerMeasurement.CustomerMeasurementID.ToString();
                lblCustomerID.Text = customerMeasurement.CustomerIDCard.ToString();
                lblMobileNo.Text   = customerMeasurement.CustomerMobile.ToString();
                //lnkbtnCustomerName.CommandName = "LoadBrand";
                lnkEdit.CommandArgument  = customerMeasurement.MeasurementID.ToString();
                lnkEdit.CommandName      = "EditMeasurement";
                lnkPrint.CommandArgument = customerMeasurement.MeasurementID.ToString();
                lnkPrint.CommandName     = "PrintMeasurement";
            }
        }
        public Response SavedSalesOrderDetails(System.Collections.ArrayList paramList)
        {
            if (paramList.Count > 0)
            {
                CustomerMeasurement Measurment = Newtonsoft.Json.JsonConvert.DeserializeObject <CustomerMeasurement>(paramList[0].ToString());

                CustomerStyle Style = Newtonsoft.Json.JsonConvert.DeserializeObject <CustomerStyle>(paramList[1].ToString());

                CustomerBodyPosture Posture = Newtonsoft.Json.JsonConvert.DeserializeObject <CustomerBodyPosture>(paramList[2].ToString());

                SalesOrderDetails OrderDetails = Newtonsoft.Json.JsonConvert.DeserializeObject <SalesOrderDetails>(paramList[3].ToString());

                return(new Response {
                    Result = true, Message = "Temporary Saved !", Value = 1
                });
            }
            else
            {
                return(new Response {
                    Result = false, Message = "Failed", Value = 0
                });
            }
        }