protected void lnkDeactive_OnClick(object sender, EventArgs e)
    {
        if (grdOrganization.zIsValidSelection(lblOrganizationId, "chkSelect", CS.OrganizationId))
        {
            if (new Organization()
            {
                OrganizationId = lblOrganizationId.zToInt(),
                eStatus = (int)eStatus.Deactive
            }.SelectCount() > 0)
            {
                CU.ZMessage(eMsgType.Error, string.Empty, "This Organization is already Deactive.");
                return;
            }

            string Message = string.Empty;
            if (CU.IsOrganizationUsed(lblOrganizationId.zToInt().Value, ref Message))
            {
                CU.ZMessage(eMsgType.Error, string.Empty, Message + ", Then It can not Deactive.");
                return;
            }

            Confirmationpopup.SetPopupType(ePopupType.Deactive, "Deactive Organization", "Are You Sure To Deactive Organization?");
            popupConfirmation.Show();
        }
    }
    protected void lnkDeactive_OnClick(object sender, EventArgs e)
    {
        if (grdUser.zIsValidSelection(txtUsersId, "chkSelect", CS.UsersId))
        {
            if (new Users()
            {
                UsersId = txtUsersId.zToInt(),
                eStatus = (int)eStatus.Deactive
            }.SelectCount() > 0)
            {
                CU.ZMessage(eMsgType.Error, string.Empty, "This User is already Deactive.");
                return;
            }

            string Message = string.Empty;
            if (CU.IsUserUsed(txtUsersId.zToInt().Value, ref Message))
            {
                CU.ZMessage(eMsgType.Error, string.Empty, Message + ", So You can not Deactive It.");
                return;
            }

            Confirmationpopup.SetPopupType(ePopupType.Deactive, "Deactive User", "Are You Sure To Deactive this User?");
            popupConfirmation.Show();
        }
    }
    protected void lnkDeactive_OnClick(object sender, EventArgs e)
    {
        if (grdPortal.zIsValidSelection(lblPortalId, "chkSelect", CS.PortalId))
        {
            if (new Portal()
            {
                PortalId = lblPortalId.zToInt(),
                eStatus = (int)eStatus.Deactive
            }.SelectCount() > 0)
            {
                CU.ZMessage(eMsgType.Error, string.Empty, "This Portal is Already Deactive.");
                return;
            }

            //string Message = string.Empty;
            //if(CU.IsPortalUsed(lblPortalId.zToInt().Value,ref Message))
            //{
            //    CU.ZMessage(eMsgType.Error, string.Empty, Message + ", Then It Cannot Delete.");
            //    return;
            //}

            Confirmationpopup.SetPopupType(ePopupType.Deactive, "Deactive Portal", "Are You Sure To Deactive Portal?");
            popupConfirmation.Show();
        }
    }
Example #4
0
 protected void lnkDelete_OnClick(object sender, EventArgs e)
 {
     if (grdOnlineCourier.zIsValidSelection(lblOnlineCourierId, "chkSelect", CS.OnlineCourierId))
     {
         Confirmationpopup.SetPopupType(ePopupType.Delete, "Delete Sheet", "Are You Sure To Delete Sheet?");
         popupConfirmation.Show();
     }
 }
Example #5
0
 protected void lnkDelete_OnClick(object sender, EventArgs e)
 {
     if (grdCallHistory.zIsValidSelection(lblCallHistoryId, "chkSelect", CS.CallHistoryId))
     {
         Confirmationpopup.SetPopupType(ePopupType.Delete, "Delete CallHistory", "Are You Sure To Delete CallHistory?");
         popupConfirmation.Show();
     }
 }
 protected void lnkDelete_OnClick(object sender, EventArgs e)
 {
     if (grdVendor.zIsValidSelection(lblVendorId, "chkSelect", CS.VendorId))
     {
         Confirmationpopup.SetPopupType(ePopupType.Delete, "Delete Vendor", "Are You Sure To Delete Vendor?");
         popupConfirmation.Show();
     }
 }
Example #7
0
 protected void lnkDelete_OnClick(object sender, EventArgs e)
 {
     if (grdService.zIsValidSelection(lblServiceAvailabilityId, "chkSelect", CS.ServiceAvailabilityId))
     {
         Confirmationpopup.SetPopupType(ePopupType.Delete, "Delete Service", "Are You Sure To Delete Service?");
         popupConfirmation.Show();
     }
 }
Example #8
0
 protected void lnkDelete_OnClick(object sender, EventArgs e)
 {
     if (grdOrderSource.zIsValidSelection(lblOrderSourceId, "chkSelect", CS.OrderSourceId))
     {
         Confirmationpopup.SetPopupType(ePopupType.Delete, "Delete Order Source", "Are You Sure To Delete Order Source?");
         popupConfirmation.Show();
     }
 }
 protected void lnkDelete_OnClick(object sender, EventArgs e)
 {
     if (grdWallet.zIsValidSelection(lblWalletId, "chkSelect", CS.WalletId))
     {
         string Message = string.Empty;
         Confirmationpopup.SetPopupType(ePopupType.Delete, "Delete Transaction", "Are You Sure To Delete Transaction?");
         popupConfirmation.Show();
     }
 }
    protected void lnkDelete_OnClick(object sender, EventArgs e)
    {
        if (grdOrganization.zIsValidSelection(lblOrganizationId, "chkSelect", CS.OrganizationId))
        {
            string Message = string.Empty;
            if (CU.IsOrganizationUsed(lblOrganizationId.zToInt().Value, ref Message))
            {
                CU.ZMessage(eMsgType.Error, string.Empty, Message + ", Then It can not Delete.");
                return;
            }

            Confirmationpopup.SetPopupType(ePopupType.Delete, "Delete Organization", "Are You Sure To Delete Organization?");
            popupConfirmation.Show();
        }
    }
    protected void lnkDelete_OnClick(object sender, EventArgs e)
    {
        if (grdPortal.zIsValidSelection(lblPortalId, "chkSelect", CS.PortalId))
        {
            //string Message = string.Empty;
            //if (CU.IsPortalUsed(lblPortalId.zToInt().Value, ref Message))
            //{
            //    CU.ZMessage(eMsgType.Error, string.Empty, Message + ", Then It Cannot Delete.");
            //    return;
            //}

            Confirmationpopup.SetPopupType(ePopupType.Delete, string.Empty, "Are You Sure To Delete Portal?");
            popupConfirmation.Show();
        }
    }
 protected void lnkActive_OnClick(object sender, EventArgs e)
 {
     if (grdPortal.zIsValidSelection(lblPortalId, "chkSelect", CS.PortalId))
     {
         if (new Portal()
         {
             PortalId = lblPortalId.zToInt(),
             eStatus = (int)eStatus.Active
         }.SelectCount() > 0)
         {
             CU.ZMessage(eMsgType.Error, string.Empty, "This Portal is Already Active.");
             return;
         }
         Confirmationpopup.SetPopupType(ePopupType.Active, "Active Portal", "Are You Sure To Active Portal?");
         popupConfirmation.Show();
     }
 }
    protected void lnkDelete_OnClick(object sender, EventArgs e)
    {
        if (grdItemAdjustment.zIsValidSelection(lblItemAdjustmentId, "chkSelect", CS.ItemAdjustmentId))
        {
            if (new ItemAdjustment()
            {
                ItemAdjustmentId = lblItemAdjustmentId.zToInt(), OrdersId = 0
            }.SelectCount() == 0)
            {
                CU.ZMessage(eMsgType.Error, string.Empty, "This Adjustment is Order Adjustment, Then It can not Delete.");
                return;
            }

            Confirmationpopup.SetPopupType(ePopupType.Delete, "Delete Adjustment", "Are You Sure To Delete Adjustment?");
            popupConfirmation.Show();
        }
    }
Example #14
0
    protected void lnkDeactive_OnClick(object sender, EventArgs e)
    {
        if (grdCallHistory.zIsValidSelection(lblCallHistoryId, "chkSelect", CS.CallHistoryId))
        {
            if (new CallHistory()
            {
                CallHistoryId = lblCallHistoryId.zToInt(),
                eStatus = (int)eStatus.Deactive
            }.SelectCount() > 0)
            {
                CU.ZMessage(eMsgType.Error, string.Empty, "This CallHistory is already Deactive.");
                return;
            }

            Confirmationpopup.SetPopupType(ePopupType.Deactive, "Deactive CallHistory", "Are You Sure To Deactive CallHistory?");
            popupConfirmation.Show();
        }
    }
    protected void lnkActive_OnClick(object sender, EventArgs e)
    {
        if (grdWallet.zIsValidSelection(lblWalletId, "chkSelect", CS.WalletId))
        {
            if (new Wallet()
            {
                WalletId = lblWalletId.zToInt(),
                eStatus = (int)eStatus.Active
            }.SelectCount() > 0)
            {
                CU.ZMessage(eMsgType.Error, string.Empty, "This Transaction is already Active.");
                return;
            }

            Confirmationpopup.SetPopupType(ePopupType.Active, "Active Transaction", "Are You Sure To Active Transaction?");
            popupConfirmation.Show();
        }
    }
Example #16
0
    protected void lnkDeactive_OnClick(object sender, EventArgs e)
    {
        if (grdService.zIsValidSelection(lblServiceAvailabilityId, "chkSelect", CS.ServiceAvailabilityId))
        {
            if (new ServiceAvailability()
            {
                ServiceAvailabilityId = lblServiceAvailabilityId.zToInt(),
                eStatus = (int)eStatus.Deactive
            }.SelectCount() > 0)
            {
                CU.ZMessage(eMsgType.Error, string.Empty, "This Service is already Deactive.");
                return;
            }

            Confirmationpopup.SetPopupType(ePopupType.Deactive, "Deactive Service", "Are You Sure To Deactive Service?");
            popupConfirmation.Show();
        }
    }
    protected void lnkActive_OnClick(object sender, EventArgs e)
    {
        if (grdUser.zIsValidSelection(txtUsersId, "chkSelect", CS.UsersId))
        {
            if (new Users()
            {
                UsersId = txtUsersId.zToInt(),
                eStatus = (int)eStatus.Active
            }.SelectCount() > 0)
            {
                CU.ZMessage(eMsgType.Error, string.Empty, "This User is already Active.");
                return;
            }

            Confirmationpopup.SetPopupType(ePopupType.Active, "Active User", "Are You Sure To Active this User?");
            popupConfirmation.Show();
        }
    }
Example #18
0
    protected void lnkDeactive_OnClick(object sender, EventArgs e)
    {
        if (grdOnlineCourier.zIsValidSelection(lblOnlineCourierId, "chkSelect", CS.OnlineCourierId))
        {
            if (new OnlineCourier()
            {
                OnlineCourierId = lblOnlineCourierId.zToInt(),
                eStatus = (int)eStatus.Deactive
            }.SelectCount() > 0)
            {
                CU.ZMessage(eMsgType.Error, string.Empty, "This Sheet is already Deactive.");
                return;
            }

            Confirmationpopup.SetPopupType(ePopupType.Deactive, "Deactive Sheet", "Are You Sure To Deactive Sheet?");
            popupConfirmation.Show();
        }
    }
Example #19
0
    protected void lnkActive_OnClick(object sender, EventArgs e)
    {
        if (grdOrderSource.zIsValidSelection(lblOrderSourceId, "chkSelect", CS.OrderSourceId))
        {
            if (new OrderSource()
            {
                OrderSourceId = lblOrderSourceId.zToInt(),
                eStatus = (int)eStatus.Active
            }.SelectCount() > 0)
            {
                CU.ZMessage(eMsgType.Error, string.Empty, "This Order Source is already Active.");
                return;
            }

            Confirmationpopup.SetPopupType(ePopupType.Active, "Active Order Source", "Are You Sure To Active Order Source?");
            popupConfirmation.Show();
        }
    }