Exemple #1
0
		private void SaveRecord()
		{
            WBranchTransferDetails clsDetails = new WBranchTransferDetails();

            clsDetails.WBranchTransferID = long.Parse(lblWBranchTransferID.Text);
            clsDetails.WBranchTransferNo = lblWBranchTransferNo.Text;
            clsDetails.WBranchTransferDate = Convert.ToDateTime(lblWBranchTransferDate.Text);
            clsDetails.BranchIDFrom = Convert.ToInt16(cboBranchFrom.SelectedItem.Value);
            clsDetails.BranchIDTo = Convert.ToInt16(cboBranchTo.SelectedItem.Value);
            clsDetails.RequiredDeliveryDate = Convert.ToDateTime(txtRequiredDeliveryDate.Text);
            clsDetails.TransferrerID = Convert.ToInt64(Session["UID"].ToString());
            clsDetails.TransferrerName = Session["Name"].ToString();
            clsDetails.RequestedBy = txtRequestedBy.Text;
            clsDetails.Status = WBranchTransferStatus.Open;
            clsDetails.Remarks = txtRemarks.Text;

            WBranchTransfer clsWBranchTransfer = new WBranchTransfer();
            clsWBranchTransfer.Update(clsDetails);
            clsWBranchTransfer.CommitAndDispose();
		}