Пример #1
0
        void AssignValues()
        {
            forSqlOp          = new ForSqlOp();
            forSqlOp.GName    = txtGuestName.Text;
            forSqlOp.OrgName  = txtOrgName.Text;
            forSqlOp.MobileNo = txtMobileNo.Text;

            forSqlOp.Emp2        = txtEmpName.Text;
            forSqlOp.EmpDeptName = txtDeptName.Text;
            forSqlOp.EmpMobile   = txtMobile.Text;

            forSqlOp.SelectedSnacks = ddlItemName.SelectedValue;
            forSqlOp.SnackQuantity  = txtQuantity.Text;

            forSqlOp.EmpId = txtEmpId.Text;


            forSqlOp.OrderQuanty = "" + TotalCount;
            forSqlOp.FromDate    = txtFromDate.Text;
            forSqlOp.ToDate      = txtToDate.Text;


            forSqlOp.DepartID   = ddlDeptID.SelectedItem.Text;
            forSqlOp.LocId      = ddlLocation.SelectedValue;
            forSqlOp.CanteenID  = ddlCanteen.SelectedValue;
            forSqlOp.AddDetails = txtAddDetails.Text;
            forSqlOp.FoodType   = ddlMealType.SelectedItem.Text;
            forSqlOp.RequestID  = Guid.NewGuid().ToString().Substring(0, Guid.NewGuid().ToString().Length - 25);
            RequestID           = forSqlOp.RequestID;
            forSqlOp.TokenID    = Guid.NewGuid().ToString().Substring(0, Guid.NewGuid().ToString().Length - 25);
            forSqlOp.RequestForm();
            forSqlOp.InsertionForGuest();
        }
Пример #2
0
        void AssignValues()
        {
            ForSqlOp forSqlOp = new ForSqlOp();

            forSqlOp.GName      = txtGuestName.Text;
            forSqlOp.OrgName    = txtOrgName.Text;
            forSqlOp.MobileNo   = txtMobileNo.Text;
            forSqlOp.EmpId      = txtEmpId.Text;
            forSqlOp.DepartID   = ddlDeptID.SelectedItem.Text;
            forSqlOp.LocId      = ddlLocation.SelectedValue;
            forSqlOp.CanteenID  = ddlCanteen.SelectedValue;
            forSqlOp.FromDate   = lblFromdate.Text;
            forSqlOp.ToDate     = lblToDate.Text;
            forSqlOp.AddDetails = txtAddDetails.Text;
            forSqlOp.FoodType   = ddlMealType.SelectedValue;
            string RequestID = Guid.NewGuid().ToString().Substring(0, Guid.NewGuid().ToString().Length - 15);
            string Token     = Guid.NewGuid().ToString().Substring(0, Guid.NewGuid().ToString().Length - 15);

            forSqlOp.RequestForm(RequestID, Token);
            forSqlOp.InsertionForGuest(RequestID, Token);
        }