コード例 #1
0
 public int UpdateVdcMunById(VdcMun obj)
 {
     object[] results = this.Invoke("UpdateVdcMunById", new object[] {
         obj
     });
     return((int)(results[0]));
 }
コード例 #2
0
 public int InsertVdcMun(VdcMun obj)
 {
     object[] results = this.Invoke("InsertVdcMun", new object[] {
         obj
     });
     return((int)(results[0]));
 }
コード例 #3
0
 /// <remarks/>
 public void UpdateVdcMunByIdAsync(VdcMun obj, object userState)
 {
     if ((this.UpdateVdcMunByIdOperationCompleted == null))
     {
         this.UpdateVdcMunByIdOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUpdateVdcMunByIdOperationCompleted);
     }
     this.InvokeAsync("UpdateVdcMunById", new object[] {
         obj
     }, this.UpdateVdcMunByIdOperationCompleted, userState);
 }
コード例 #4
0
 /// <remarks/>
 public void InsertVdcMunAsync(VdcMun obj, object userState)
 {
     if ((this.InsertVdcMunOperationCompleted == null))
     {
         this.InsertVdcMunOperationCompleted = new System.Threading.SendOrPostCallback(this.OnInsertVdcMunOperationCompleted);
     }
     this.InvokeAsync("InsertVdcMun", new object[] {
         obj
     }, this.InsertVdcMunOperationCompleted, userState);
 }
コード例 #5
0
        protected void btn_Save_Click(object sender, EventArgs e)
        {
            VdcMun obj = new VdcMun();

            obj.District      = Convert.ToInt32(ddlDistrict.SelectedValue);
            obj.VdcMunNameEng = txtVMeng.Text;
            obj.VdcMunNameNep = txtVMnep.Text;
            obj.VdcMunType    = ddlVdcMunType.SelectedValue;
            obj.VdcMunCode    = txtVMcode.Text;
            if (chkIsEnable.Checked == true)
            {
                obj.IsEnable = 1;
            }
            else
            {
                obj.IsEnable = 0;
            }
            obj.IsLocked = 0;

            if (VdcMunId == "0")
            {
                objVdcMunService.AuthSoapHdValue = ServiceAuth.ServiceAuthenticationVdcMun();
                int i = objVdcMunService.InsertVdcMun(obj);
                if (i > 0)
                {
                    Response.Write("<script>alert('VDC/MUN added successfully.');</script>");
                    Response.Redirect(Constants.ConstantAppPath + "/Modules/DirectoryManagement/VdcMunList.aspx");
                }
                else
                {
                    Response.Write("<script>alert('VDC/MUN addition failed!');</script>");
                }
            }
            else
            {
                obj.VdcMunId = VdcMunId;
                objVdcMunService.AuthSoapHdValue = ServiceAuth.ServiceAuthenticationVdcMun();
                int i = objVdcMunService.UpdateVdcMunById(obj);
                if (i > 0)
                {
                    Response.Write("<script>alert('VDC/MUN updated successfully');</script>");
                    Response.RedirectPermanent(Constants.ConstantAppPath + "/Modules/DirectoryManagement/VdcMunList.aspx");
                }
                else
                {
                    Response.Write("<script>alert('VDC/MUN update failed');</script>");
                }
            }
        }
コード例 #6
0
 /// <remarks/>
 public void UpdateVdcMunByIdAsync(VdcMun obj)
 {
     this.UpdateVdcMunByIdAsync(obj, null);
 }
コード例 #7
0
 /// <remarks/>
 public void InsertVdcMunAsync(VdcMun obj)
 {
     this.InsertVdcMunAsync(obj, null);
 }